Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
chitrams opened this issue Jun 14, 2024 · 2 comments
Open
1 of 2 tasks
Assignees
Labels
bug Something isn't working high-priority Work on these issues first testing Testing and validation

Comments

@chitrams
Copy link
Member

chitrams commented Jun 14, 2024

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

  • tar_make error for in_data_wpp object because socialmixr was not loaded
  • Failed to install conmat automatically using renv, but when Saras did this manualy, it works. conmat failed to load because socialmixr failed to load
  • furrr is missing?

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

  • Does it work when we use renv::restore()? This did not work for Saras
  • Does it work once we've updated socialmixr in the lockfile?
@chitrams chitrams added bug Something isn't working testing Testing and validation high-priority Work on these issues first labels Jun 14, 2024
@chitrams chitrams self-assigned this Jun 14, 2024
@chitrams chitrams added this to the User-tested version milestone Jun 14, 2024
@chitrams
Copy link
Member Author

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

chitrams added a commit that referenced this issue Jun 21, 2024
@chitrams
Copy link
Member Author

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 ... doneWill 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 sizeGot conmat 0.0.2.9000 (source) (20.02 MB)               
✔ Downloaded 1 package (20.02 MB) in 33.8sPackaging 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 calledrstudioapi

The next steps are probably to:

  • Clean the lockfile
  • Reinstall conmat
  • See if the lockfile records the correct repo for conmat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority Work on these issues first testing Testing and validation
Projects
None yet
Development

No branches or pull requests

1 participant