rspm (rstudio package manager)
repository management server
to organize and centralize R packages across your team
Get offline access to CRAN,
automate CRAN syncs,
share local packages,
restrict package access,
find packages across repositories
We currently only provide a pre-built binary for the 64-bit architecture.
Execute the following commands in a terminal window to install gdebi (which is used to install RStudio Package Manager and all of its dependencies) and RStudio Package Manager.
$ sudo apt-get install gdebi-core $ wget https://s3.amazonaws.com/rstudio-package-manager/rstudio-pm_0.6.0.1-8_amd64.deb $ sudo gdebi rstudio-pm_0.6.0.1-8_amd64.deb
Once installed, view the Administrator’s Guide to learn how to manage and configure RStudio Package Manager.
|➜ subl /etc/rstudio-pm/rstudio-pm.gcfg
[Server] Address = http://192.168.1.6 [Http] Listen = :4242
|➜ sudo systemctl start rstudio-pm
|➜ sudo /opt/rstudio-pm/bin/license-manager status RStudio License Manager 1.2.631-2 -- Local license status -- Trial-Type: Verified Status: Evaluation Days-Left: 45 License-Scope: System -- Floating license status -- License server not in use.
PATH에 /opt/rstudio-pm/bin 추가
|➜ rspm help RStudio Package Manager administrative toolset. Usage: rspm [flags] rspm [command] Available Commands: add Command to add packages to sources air-gap Command to print help for setting up an air-gapped RStudio Package Manager service archive Command to archive packages in sources clear-cran Command to purge CRAN metadata. Cannot be used if any repos subscribe to CRAN. create Commands to create sources and repos delete Commands to delete sources and repos edit Commands to edit repo name and description fetch Command to initiate eager package fetching help Help about any command info Command to print information about sources and repos list Commands to list sources, repos and packages. remove Command to remove packages from sources reorder Command to reorder repo subscriptions to sources subscribe Command to subscribe repos to sources sync Command to initiate source synchronization unsubscribe Command to unsubscribe repos from sources update Command to update curated-cran sources Flags: -c, --config string Path to config file -h, --help help for rspm -v, --verbose Provide additional output Use "rspm [command] --help" for more information about a command.
Error: Post http://unix/__api__/sync: dial unix /var/run/rstudio-pm/rstudio-pm.sock: connect: permission denied
|➜ ls -alh /var/run/rstudio-pm/rstudio-pm.sock
srwxrwx— 1 rstudio-pm rstudio-pm 0 Aug 11 16:57 /var/run/rstudio-pm/rstudio-pm.sock
sudo usermod -aG rstudio-pm onesixx