Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • Just a side note, [ -d "HOME/bin" ] should be [ -d "$HOME/bin" ]. And it's way to process PATH -- prepending so it get checked first -- is just what you need. Commented Oct 26, 2015 at 14:51
  • I added the "$"in front of "HOME", quit the server, re login, checked by "which R", still "/usr/bin/R", the system R Commented Oct 26, 2015 at 15:04
  • Its way (oops, sorry for that extra ' in the first reply), not all its code. For you it should look like …… Well, just like Archemar's solution. Commented Oct 26, 2015 at 16:59
  • If you haven't already done so, the first thing you should do is ask the systems administrator(s) to install R as a system-wide tool so that all users can use it. You shouldn't have to install and maintain common tools like R yourself, that's the sysadmin's job. Commented Oct 26, 2015 at 21:15
  • @cas thank you, cas. but I am not sure that would be the best option.I do not want to use the system R is because I do not bother admin every time when I try to install a new package. let me know if I was wrong. As you could tell, I am quite inexperienced. Commented Oct 27, 2015 at 2:02