You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a folder that is setup with packrat. When I try to install packages using pak::pkg_install("stringi"). I get this error
Error in read.dcf(file.path(path, "DESCRIPTION")) :
cannot open the connection
In addition: Warning message:
In read.dcf(file.path(path, "DESCRIPTION")) :
cannot open compressed file 'P:/working folder/projects/rshiny_projects/shiny_app-working/code/packrat/lib/x86_64-w64-mingw32/3.5.0/stringi/DESCRIPTION', probable reason 'No such file or directory'
I deleted all packrat folder and then re-initiated with packrat::init(infer.dependencies = F). Then run pak::pkg_setup
`pak` will create its private package library in
`C:\Users\gade04\AppData\Local\R-pkg\Cache/lib/3.5`.
It will try to copy packages from your regular library
See `?pak_setup()` for alternatives.
Do you want to continue (Y/n)? Y
Creating private lib in `C:\Users\gade04\AppData\Local\R-pkg\Cache/lib/3.5`...
Created private lib in `C:\Users\gade04\AppData\Local\R-pkg\Cache/lib/3.5`..
Question How can I create private library for the current project inside the project dir rather than in above default path that pak chose. ? Not sure if this is a good practice to create a private library for every project folder I work with ( something like packrat) ?
re-run pak::pkg_install("stringi"). Now, it throws a different error
i Checking for package metadata updates
v All 10 metadata files are current.
√oa Loading session disk cached package metadata
v Using cached package metadata
Error in res_add_defaults(entries) :
Wrong entry types: `filesize (double, expected integer)`
In addition: Warning message:
package ‘pak’ was built under R version 3.5.3
I'm getting the same error here, with current CRAN, current github master, R 3.5.2 and R 3.5.3 ... No clue where this is coming from ...
library(pak)
pkg_install("usethis")
#> i Checking for package metadata updates#> v Using cached package metadata#> Error in res_add_defaults(entries): Wrong entry types: `filesize (double, expected integer)`
I have a folder that is setup with
packrat
. When I try to install packages usingpak::pkg_install("stringi")
. I get this errorI deleted all packrat folder and then re-initiated with
packrat::init(infer.dependencies = F)
. Then runpak::pkg_setup
Question How can I create private library for the current project inside the project dir rather than in above default path that pak chose. ? Not sure if this is a good practice to create a private library for every project folder I work with ( something like packrat) ?
re-run
pak::pkg_install("stringi")
. Now, it throws a different errorI ran this
The text was updated successfully, but these errors were encountered: