Questions tagged [packrat]

Packrat is a package for `R` which allows the creation of "drag and drop" projects, together with libraries and their required packages.

77 questions
0
votes
1 answer

Packrat::restore() for system dependencies

I was developing a shiny-app on a Windows machine in Rstudio. Now I need to develop it on a Linux machine and later on will need to deploy it on a server. Because of the need to run the app across platforms, I was looking into some environment…
0
votes
1 answer

How to Manage R Packages given Windows 255 file path limit, e.g. checkpoint and Rcpp?

So I was trying to install Rcpp using the checkpoint package (with a March 1st 2020 date). Most of my packages were fine, but Rcpp specifically makes a lot of temporary directories that it then deletes, for example:…
Carlos Mercado
  • 165
  • 1
  • 5
0
votes
0 answers

packrat restore when switching between git branches with different packages

I'm making large changes to an R project on a different git branch which includes changes to packrat packages and versions. When I switch back to the original master branch after making those changes, I need to run packrat::restore() to get back to…
Giovanni Colitti
  • 1,982
  • 11
  • 24
0
votes
1 answer

Is it possible to install different package versions within an R personal library for one specific version of R

Is it possible to install different package versions within a R personal library for one specific version of R; and then to be able to load the exact package version withing a script? I am trying to make sure I have the exact package version…
CK7
  • 229
  • 1
  • 11
0
votes
0 answers

packrat not bundling all files

I have developed several shiny applications on a development server. To aid with deployment to our production server I've written a function that uses packrat's bundle function to bundle up the application. My function then sftps the bundle to the…
0
votes
0 answers

packrat init in an existing project does not initialise

I have a working project on Rstudio Server and I want to freeze all packages into the actual working versions to avoid future issues due to global library updates. So I run > packrat::init() Initializing packrat project in directory: -…
useRj
  • 1,232
  • 1
  • 9
  • 15
0
votes
1 answer

R 3.5.1 - Building data.table from source fails on Travis CI

I'm currently trying to set up continuous integration for a bookdown-project The project bundles dependencies with packrat, so Travis CI needs to build the required packages from source. This seems to go okay for many packages, but the build is…
stats-hb
  • 958
  • 13
  • 31
0
votes
0 answers

Deploy Rshiny app from local machine packrat project bundle to linux server

I have build a packrat rshiny project and bundled the project to a tar.gz file. Now, When I am trying to move this to linux server which doesn't have Rshiny package and doesn't have privileges to install packages. When I run the app from linux…
Shankar Pandala
  • 969
  • 2
  • 8
  • 28
0
votes
1 answer

How to know if I'm in packrat mode in R command line?

If I'm using RStudio it is very easy to know if I'm in packrat mode: I just open the packages tab and click the Packrat icon. However, I don't know any commands to do it programatically or outside RStudio. Also, packrat commands such as…
gsmafra
  • 2,434
  • 18
  • 26
0
votes
1 answer

Initialising packrat for new project so it contains existing packages

I want to start using package management for R projects. I am trying to use the packrat package. When I start a new project, I select the "Use packrat with this project" in the GUI. Or I could use packrat::init(). Both work OK. However, unless I am…
Pete900
  • 2,016
  • 1
  • 21
  • 44
0
votes
0 answers

package installed, but not found when knitting

Can anyone suggest troubleshooting tips for the case where you can load a package from the console, but not when knitting? I have a project in RStudio that uses Packrat. The package I want to load is installed and registered in Packrat. I can load…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
0
votes
0 answers

Packrat: Dependencies unavailable

I think I might be unsure of the workflow packrat expects. I'm trying to make a docker image using packrat for dependencies management. As a simple example, I've: Created a completely new project Ran packrat::on()…
Akhil Nair
  • 3,144
  • 1
  • 17
  • 32
0
votes
1 answer

r packrat unbundle not recreating libraries

I am having trouble understanding what I am doing wrong when deploy a shiny application on shiny server using packrat to managing the libraries. I create project test-deploy in RStudio, then initiate packrat with. packrat::init() As I work I am…
iboboboru
  • 1,112
  • 2
  • 10
  • 21
0
votes
0 answers

Re-initialize with packrat::init()

I have no idea how to make this problem reproducible, but here is a description of the problem nevertheless. I upgraded to R v 3.4.0 yesterday (sessionInfo() is below) and one of my RStudio projects couldn't update packages in packrat. After…
rtelmore
  • 1,365
  • 1
  • 8
  • 8
0
votes
0 answers

packrat cannot sync package versions with CRAN

I installed packrat and tried to initialize it in my project directory, which uses R 3.2.5: > packrat::init("~/ope_orx") I get the complete list of packages and then packrat tries to fetch sources and I get this type of error for almost all…
xeroqu
  • 425
  • 5
  • 14