First time here? Check out the FAQ!

Ask Your Question
0

specifying the R executable

asked 11 years ago

anonymous user

Anonymous

updated 11 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 11 years ago

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.

Preview: (hide)
link

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: 11 years ago

Seen: 278 times

Last updated: Jul 23 '13