Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6000469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:41:52+00:00 2026-05-23T00:41:52+00:00

I am setting up a cluster where all nodes have access to /nfs/software ,

  • 0

I am setting up a cluster where all nodes have access to /nfs/software, so a good place to install.packages() would be under /nfs/software/R. How do I set R_LIBS_SITE so that this is automatically part of all users’ R environment? I tried prepending to the path given for R_LIBS_SITE in /etc/R/Renviron but help(Startup) says “do not change ‘R_HOME/etc/Renviron’ itself”, which I’m not sure is the same file since R_HOME expands to /usr/lib/R, but has no effect in any case. Making entries in the various Renviron.site and Rprofile.site files does not seem to have the desired effect. What am I missing here?

Some other questions have danced around this (here and here, maybe others), but people seem to settle for having a user-specific library in their HOME.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:41:53+00:00Added an answer on May 23, 2026 at 12:41 am

    Make sure you have owner and/or group write permissions for the directory you want to write into.

    The file /etc/R/Renviron.site is the preferred choice for local overrides to /etc/R/Renviron.

    Another way is to simply … impose the directory when installing packages. I tend to do that on the (bash rather than R) shell via this script derived from an example in the littler package:

    $ cat bin/install.r 
    #!/usr/bin/env r
    #
    # a simple example to install one or more packages
    
    if (is.null(argv) | length(argv)<1) {
    
      cat("Usage: installr.r pkg1 [pkg2 pkg3 ...]\n")
      q()
    
    }
    
    ## adjust as necessary, see help('download.packages')
    repos <- "http://cran.us.r-project.org"
    #repos <- "http://cran.r-project.org"
    
    ## this makes sense on Debian where no packages touch /usr/local
    lib.loc <- "/usr/local/lib/R/site-library"
    
    install.packages(argv, lib.loc, repos)
    

    and you can easily customize a helper like this for your preferred location. With the script installed in ~/bin/, I often do

    $ ~/bin/install.r xts plyr doRedis
    

    and it will faithfully install these packages along with their depends. The littler package has a similar script update.r.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running in cluster mode (two nodes) under tomcat/Linux. Unfortunately I've
Lets say I have a cluster of HTTPD's on a Cloud and they all
I have a WebLogic 9.2 Cluster which runs 2 managed server nodes. I have
I am setting up a EC2 cluster with a load balancer. I have seperate
I'm setting up a cluster of servers for the company I work at, and
Setting up ASP.net MVC with Linq2SQL or Entity Framework's context to have scaffolding work
Setting up new git installations. On one Windows laptop, I'm running (under cygwin): git
I am trying to set up a JBoss Cluster with Apache Load Balancing. Basically
I am setting up a GlassFish cluster following the guide at http://javadude.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/ . I
After reading http://gbif.blogspot.com/2011/01/setting-up-hadoop-cluster-part-1-manual.html we came to the conclusion our 6-nodes hadoop cluster could use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.