rspm (rstudio package manager)

Published by onesixx on

https://www.rstudio.com/products/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

http://docs.rstudio.com/rspm/admin/quickstarts.html

http://docs.rstudio.com/rspm/admin/

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    

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

http://docs.rstudio.com/rspm/admin/appendix-configuration.html#appendix-configuration

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

[Server]
Address = http://192.168.1.6

[Http]
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.

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.

 

http://docs.rstudio.com/rspm/admin/admin-cli.html#example

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 

 

 

http://192.168.1.6:4242/client/#/

 

 

Categories: R Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x