Packrat is a package for `R` which allows the creation of "drag and drop" projects, together with libraries and their required packages.
Questions tagged [packrat]
77 questions
1
vote
1 answer
shiny app deployed in 2018 on shinyapps.io not working locally in 2019
I worked on a historical slavery map shiny app project during 2018 period.
My shiny app whas deployed on shinyapps.io with success. You can have a look to my project here
Today, I want to upgrade my app but unfortunately the UI is not working…

Wilcar
- 2,349
- 2
- 21
- 48
1
vote
1 answer
R packrat snapshot: upgrading package gives "stale" errors
I'm using packrat to freeze all versions of dependencies for an application. Sometimes I run into troubles with "staleness".
For instance, today I upgraded one package to a newer version. I did this by launching R in the packrat-managed project:
%…

Ken Williams
- 22,756
- 10
- 85
- 147
1
vote
1 answer
bundle only selected libraries in packrat
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…

Shankar Pandala
- 969
- 2
- 8
- 28
1
vote
2 answers
how to use rpy2 within a packrat environment?
I try to use an R package that I have installed using the R package 'packrat' that allow to create a virtual environment similar to virtuanlenv in python. But I do not succeed.
Within a console using R I can run successfully the following code:
cd…

jean pierre huart
- 370
- 1
- 12
1
vote
2 answers
Is there a way to install local packages in packrat without downloading from GitHub?
I am using packrat in an R project, and it is rather laborious to add functions to my custom package, rebuild, push to GitHub, and then re-download the package from GitHub into packrat. Besides taking a lot of extra time this involves pushing my new…

Joe
- 3,217
- 3
- 21
- 37
1
vote
0 answers
packrat does not show unused but all packages
When I use in my RStudio project the packrat Menue "Clean Unused Packages…" all packages I have ever installed are listed, e.g. even those which have the line library() in it.
The same happens when I call the function directly…

petzi
- 1,430
- 1
- 17
- 32
1
vote
1 answer
Packrat library can't be snapshotted after unstalling package
First of all, I am aware that my pain is totally self-inflicted.
In moving certain packages to the external.packages option, I first uninstalled them from packrat using remove.packages() rather than packrat::clean() as recommended here by the…

BroVic
- 979
- 9
- 26
1
vote
1 answer
After disabling packrat can I remove packrat folder from the directory?
Since I am using a cloud folder with limited space availability for my R project, I decided to disable packrat for my project and use the local library instead.
It worked, but the packrat folder inside my project folder is still there, taking quite…

Grig
- 109
- 1
- 10
1
vote
0 answers
Trouble installing 'Matrix' package using packrat on browser based rStudio
I have troubles with importing project from a local machine to a server-based rStudio environment, when i use the specified repository and guidelines i get this error when i try to restore my local packrat library:
Installing Matrix (1.2-10) ...…

Rob
- 61
- 4
1
vote
1 answer
Use packrat with this project keeps asking to install additional tools
When I
Go to the 'Packages' panel in RStudio.
Click 'Packrat'.
Check the 'Use packrat with this project' option.
I keep getting the popup window 'Install Build Tools' asking
Managing packages with Packrat requires installation of additional build…

67342343
- 816
- 5
- 11
1
vote
2 answers
Makefile with packrat package
I am using the packrat package for my project the first time, and I want to use a Makefile to run specific scripts in a specific order for different targets. However. I organized my file like…

Manuel
- 265
- 3
- 11
1
vote
0 answers
packrat on sub-directory only
I have an RStudio project which contains development code and production code.
I started this way before I know anything about packrat so I am only packrating it now.
However, I only want to packrat the production code, all sitting in a…

qoheleth
- 2,219
- 3
- 18
- 23
1
vote
0 answers
R package issues deploying shiny to beta.rstudioconnect.com
I had a shiny app that was deploying without problems on beta.rstudioconnect.com. I added some maps to it and then could no longer get it to work; one of the packages did not appear to be supported. I thought I might be able to get around this by…

val
- 1,629
- 1
- 30
- 56
1
vote
1 answer
Use packrat lockfile to generate citations
Packrat generates a lock file with all the packages actually used in a repository (including dependencies). I thought it'd be nice to use this lock file to generate my citations for the project website.
The lockfile has this format.
PackratFormat:…

Ruben
- 3,452
- 31
- 47
1
vote
1 answer
R packrat init fails with: can't open url and no description file found
After installing packrat and running packrat::init() I get the following error which in my opinion is trying to reach a site which is no longer available, additionally some other errors which I'm not sure are being generated by the first…

Jose Torres
- 1,025
- 11
- 21