rspm (rstudio package manager)

Published on

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
$ sudo gdebi rstudio-pm_0.6.0.1-8_amd64.deb    

Next Steps
Once installed, view the Administrator’s Guide to learn how to manage and configure RStudio Package Manager.

|➜ subl /etc/rstudio-pm/rstudio-pm.gcfg

Address =

Listen = :4242

|➜ sudo systemctl start rstudio-pm

license-manager[32575]: ERROR

|➜  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 추가

alias rspm='/opt/rstudio-pm/bin/rspm'
|➜  rspm help
RStudio Package Manager administrative toolset.

  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

  -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

그리고 relogin



Categories: R Basic


Blog Owner

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x