Rstudio server lets users share a library

Source: Internet
Author: User

If you haven't deployed the Rstudio server yet, look here:
http://blog.fens.me/r-rstudio-server/

After assigning a good user, and setting up a group,
You can use. Libpaths () to see the library path

.libPaths()[1"/home/xxx/R/x86_64-pc-linux-gnu-library/3.0""/usr/local/lib/R/site-library"             [3"/usr/lib/R/site-library"                    "/usr/lib/R/library"

Where the "/usr/lib/r/site-library" path is where all users share the library, so you want to share a library as long as the package is installed in this directory.
However, the group permissions for the/usr/local/lib/r/site-library path are "staff" by default, so you will have permission to install to this directory.
Modify the Site-library group to the MyGroup group so that members of the MyGroup can install the package into the Site-library directory.

sudo chgrp mygroup /usr/local/lib/R/site-library

To install a shared package for everyone in the R language:

install.packages("ggplot2","/usr/local/lib/R/site-library")

Rstudio server lets users share a library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.