How to change default R in Unix server?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to change default R in Unix server?
# 1  
Old 03-03-2009
How to change default R in Unix server?

Hi,

I try to use R through the Unix server in my university. When I want to install an R package, I don't have the permission to change the R library. So I installed another version of R under my user's folder on the server, which seems successful. However, when I try to run it, the default R on the server is the one installed by the administrator. How can I change the default R to the one I newly installed, so I have the permission to r/w/x and add the R package I need? Thanks a lot!

Xuemin
# 2  
Old 03-03-2009
Looks like something you can change in your .profile no?
Mind you, not sure I understood: Is it you installed a new version but when you launch its the old one that is being called?
If so its your PATH you need to correct with other specific variables I presume...
# 3  
Old 03-03-2009
Thanks, vbe. I am new to unix. How to change the PATH of the software, like R, in unix? What's the command like? Thanks!
# 4  
Old 03-04-2009
If you have succeeded in your installation (I know nothing about R.. is it good? Here we pay $$$ to SAS...) look where your binaries are (executable files...) usually in a ~/bin directory. go there and type pwd, this will give you the path you are to enter or set in PATH variable.
Now where things get more tricky is where is set the PATH to the old binaries:
First type which <your executable R>, it will give you the path.
Next, find where that path was set:
If global (as default for all users...) it will be certainly in /etc/profile and you cannot change it unless you have sufficent priviledge else in your .profile (in your home directory) in which case you edit it with vi and correct the PATH variable.
if it is global and you cant change it. Then in your .profile you may see something like:
PATH=$PATH:<newpath>:<etc...>
Be sure to set the new before $PATH (the content of /etc/profile) so it is found first.
The other option is to customise your profile for the new R, in a new profile file you call for example profiile_R. Here you set all you need for this enivronment
and you source to it by executing it in this way:
Code:
. ./profile_R

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I need to move files from one UNIX server to another UNIX server.

Hi, I have two unix servers i need to move files from one server to another. For example: i have some files in Server1 and i want to run script in server2 to move files from server1. Any suggestion Thanks in advance (1 Reply)
Discussion started by: karingulanagara
1 Replies

2. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

3. UNIX for Advanced & Expert Users

Log for Timezone change in unix server

There is a unix server where the time zone has been changed from EST to CST.Can we get any kind of log when it was changed anywhere in the unix machine. Also the path for the same. If there is any other way to know this please let me know (3 Replies)
Discussion started by: dr46014
3 Replies

4. AIX

AIX server is compiling executables to 32-bits by default, how to change it?

Hi everyone: I have a server running AIX 6.1, I've upgraded the TL from 6100-0100 to 6100-04-02-1007, however since then all the executables I compile are 32-bit mode by default, how can I solve this? I'm using VisualAge C/C++ 10.0 thanks in advance (4 Replies)
Discussion started by: edgarvm
4 Replies

5. Shell Programming and Scripting

Connecting to multiple unix server from unix server using shell script

Hi Gurus, I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies

6. UNIX for Dummies Questions & Answers

To copy a file from one unix server to another unix server through scripts

I am getting the fallowing error when i am trying to execute the scp commomd in shell script warning: You have no controlling tty. Cannot read confirmation. warning: Authentication failed. Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.). scp2: warning: ssh2... (1 Reply)
Discussion started by: manit
1 Replies

7. UNIX for Advanced & Expert Users

how do change hostname of a unix server

what command do you use to change a unix server name. i've tried hostname, but when the unix server is rebooted, it reverts back to the old server name. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

8. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

9. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies

10. UNIX for Advanced & Expert Users

NIS server IP change

I am changing the IP on my NIS server. Are there any files that need to be changed on my other servers that are using NIS? (1 Reply)
Discussion started by: calamine
1 Replies
Login or Register to Ask a Question