idem-lab / syncomat

Synthetically generated contact matrices for 200 countries using the R package conmat
2 stars 1 forks source link

Check that `socialmixr` works in `renv` when running the targets.R file #40

Open chitrams opened 5 months ago

chitrams commented 5 months ago

When Saras recreated the project (#35) she came across the issues:

Conclusion: socialmixr unstable, and we need to check that it loads correctly within renv? Also add furrr in lockfile

chitrams commented 5 months ago

Asked some other people (Yuval and Maurico) to run renv::restore() and will troubleshoot from their experiences.

chitrams commented 5 months ago

The reason why this fails is because the conmat package is automatically downloaded from https://njtierney.r-universe.dev instead of https://idem-lab.r-universe.dev

When I tried to re-install conmat using pak, it didn't build, with the following error message:

> pak::pkg_install("idem-lab/conmat")
✔ Updated metadata database: 4.82 MB in 4 files.                           
✔ Updating metadata database ... done                                      

→ Will install 1 package.
→ Will download 1 package with unknown size.
+ conmat   0.0.2.9000 [bld][cmp][dl] (GitHub: 419c9ba)
ℹ Getting 1 pkg with unknown size
✔ Got conmat 0.0.2.9000 (source) (20.02 MB)               
✔ Downloaded 1 package (20.02 MB) in 33.8s                
ℹ Packaging conmat 0.0.2.9000
Error:        
! error in pak subprocess
Caused by error in `process_initialize(self, private, command, args, stdin, stdout, …`:
! Native call to `processx_exec` failed
Caused by error in `chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …`:
! create process 'C:/Users/CSaraswati/AppData/Local/R/cache/R/renv/cache/v5/R-4.3/x86_64-w64-mingw32/pak/0.7.2/93288e19455e09f590b56db4d50248fe/pak/library/zip/bin/x64/cmdunzip.exe' (system error 5, Access is denied.
) @win/processx.c:1040 (processx_exec)
Type .Last.error to see the more details.
> .Last.error
Error in loadNamespace(x) : there is no package called ‘rstudioapi’

The next steps are probably to: