Bug 380631

Summary: IMPLEMENTED: support multiple installed R backends
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

Description RKWard Team 2011-04-21 06:18:03 UTC
-- Originally posted by (AT sourceforge.net): *anonymous --

-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/97 on 2017-05-31 14:48:58 +0100 --
Hi

First of all thank you for this wonderful program- it is a very nice piece of software. 

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.

Thank you for the hard work\!

Cheers
Diego 


if \[ "$\{1\}" = "--rbinary" \]; then
shift
if \[ -z "$\{1\}" \]; then
error  "option '--rbinary' requires an argument"
else
R\_binary=$\{1\}
shift
fi
else
	error "option '--rbinary' must be specified"
fi
export R\_binary



-- Labels: General --
Comment 1 Thomas Friedrichsmeier 2016-01-05 12:59:54 UTC
- **status**: open --> accepted
- **Group**:  --> -------
Comment 2 Thomas Friedrichsmeier 2016-01-05 12:59:54 UTC
Option "--r-executable" was added in 0.6.2.
Comment 3 Thomas Friedrichsmeier 2016-01-05 13:00:12 UTC
- **summary**: support multiple installed R backends --> IMPLEMENTED: support multiple installed R backends
- **status**: accepted --> closed