Ask Your Question
0

specifying the R executable

asked 2013-07-23 13:35:11 +0100

anonymous user

Anonymous

updated 2013-07-23 13:35:25 +0100

I want to have Sage use the executable of R that's already on my machine instead of the one that comes with it (it's newer, already has all my packages installed, etc). How do I configure Sage to run that version of R by default?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-07-23 14:14:37 +0100

I don't know if it's possible to do this "by default". You could try the following, though (warning: this is untested):

  • set the environment variable R_HOME to point to the location of your R installation (right now, it is essentially set to $SAGE_ROOT/local/lib/R).

  • delete the file $SAGE_ROOT/local/bin/R and replace it with a symlink to your R executable. I don't know if $SAGE_ROOT/local/bin/Rscript needs similar treatment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-07-23 13:35:11 +0100

Seen: 257 times

Last updated: Jul 23 '13