bundle only selected libraries in packrat

91 views Asked by At

I am trying to move a project from local machine to a server with no internet access and no privilege to install libraries. The server is already installed with many of the libraries.

For my current project the are some libraries and dependencies which are not available on server.

So, I am trying to use packrat to bundle and move the project to server. Now, the bundle size is becoming huge and others. I want to bundle only packages that are not available on server. How can I do this?

1

There are 1 answers

2
hanzgs On

Create a project with all your libraries and work, load packrat library and call function bundle()

library(packrat)
bundle()

This create a projname.tar.gz file

Copy this file and paste on your server project folder and call unbundle function as follows, bundle = name of your bundle and "." means unbundle here in that folder

library(packrat)
unbundle(bundle="packlib.tar.gz",where=".")