<div class="markdown_content"><ul>
<li><strong>summary</strong>: support multiple installed R backends --> IMPLEMENTED: support multiple installed R backends</li>
<li><strong>status</strong>: accepted --> closed</li>
</ul>
<hr/>
<p><strong> <a class="alink strikethrough" href="http://sourceforge.net/p/rkward/feature-requests/97/">[feature-requests:#97]</a> IMPLEMENTED: support multiple installed R backends</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> -------<br/>
<strong>Labels:</strong> General <br/>
<strong>Created:</strong> Thu Apr 21, 2011 07:18 AM UTC by Anonymous<br/>
<strong>Last Updated:</strong> Tue Jan 05, 2016 01:59 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Hi</p>
<p>First of all thank you for this wonderful program- it is a very nice piece of software. </p>
<p>Not sure if this is interesting to someone else, but I usually work with several different R installs in the same machine, so that I can keep compatibility with some specific packages (mainly related to Bioconductor). Usually rkward is bound to one backend and changing that may be quite problematic (unless I am missing something). Recently I hacked the rkward script to be able to specify the R backend on start. Obviously this needs the proper version of the corresponding rkward R package to be installed in that R install, so implementing this feature mainstream may be more problematic than in my use case. Below is the corresponding piece of code. If this is implemented in the official package it may require some changes, like instead of calling error() when no --rbinary option is passed trying first the R_binary variable that is generated during compilation, so that it can work for regular users with only one version of R installed.</p>
<p>Thank you for the hard work!</p>
<p>Cheers<br/>
Diego </p>
<p>if [ "${1}" = "--rbinary" ]; then<br/>
shift<br/>
if [ -z "${1}" ]; then<br/>
error "option '--rbinary' requires an argument"<br/>
else<br/>
R_binary=${1}<br/>
shift<br/>
fi<br/>
else<br/>
error "option '--rbinary' must be specified"<br/>
fi<br/>
export R_binary</p>
<hr/>
<p>Sent from sourceforge.net because rkward-devel@kde.org is subscribed to <a href="https://sourceforge.net/p/rkward/feature-requests/">https://sourceforge.net/p/rkward/feature-requests/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/rkward/admin/feature-requests/options.">https://sourceforge.net/p/rkward/admin/feature-requests/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>