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

The project is out-of-sync #24

Open
JonnaLind opened this issue Sep 4, 2024 · 12 comments
Open

The project is out-of-sync #24

JonnaLind opened this issue Sep 4, 2024 · 12 comments

Comments

@JonnaLind
Copy link

JonnaLind commented Sep 4, 2024

Hi @langtonhugh,
I'm very new to R (today is the first time I've even opened Rstudio), and I was hoping for an easy access to your IRR-project. But I'm running into problems, and I'm hoping you can help me:

After having installed the packages needed, but not yet installed, I got the following error messages. I'm hoping you could either update your release or give me some advice about how to proceed (please remember I'm a beginner)!

Kind regards,
Jonna Lind

Using R 4.4.0 (lockfile was generated with R 4.3.2)

  • Project 'C:/Users/JLind/StichtingArq/KC Oorlog Algemeen - Documenten/Bibliotheek/Beheer/Systemen/ASReview/IRR/asreview_irr-v.1.0-alpha' loaded. [renv 1.0.5]
  • The project is out-of-sync -- use renv::status() for details.

renv::status()
The following package(s) are in an inconsistent state:

package installed recorded used
askpass y y n
callr y y n
httr y y n
openssl y y n
processx y y n
ps y y n
rvest y y n
selectr y y n
sys y y n
webshot y y n

The following package(s) are out of sync [lockfile != library]:

CRAN -----------------------------------------------------------------------

  • bslib [0.7.0 != 0.8.0]
  • cachem [1.0.8 != 1.1.0]
  • cli [repo: RSPM != CRAN; ver: 3.6.2 != 3.6.3]
  • colorspace [repo: RSPM != CRAN; ver: 2.1-0 != 2.1-1]
  • cpp11 [repo: RSPM != CRAN; ver: 0.4.7 != 0.5.0]
  • crayon [repo: RSPM != CRAN; ver: 1.5.2 != 1.5.3]
  • curl [5.2.1 != 5.2.2]
  • digest [0.6.35 != 0.6.37]
  • evaluate [repo: RSPM != CRAN; ver: 0.23 != 0.24.0]
  • farver [repo: RSPM != CRAN; ver: 2.1.1 != 2.1.2]
  • fastmap [1.1.1 != 1.2.0]
  • fs [repo: RSPM != CRAN; ver: 1.6.3 != 1.6.4]
  • ggplot2 [repo: RSPM != CRAN; ver: 3.5.0 != 3.5.1]
  • gtable [repo: RSPM != CRAN; ver: 0.3.4 != 0.3.5]
  • highr [0.10 != 0.11]
  • kableExtra [kupietz/kableExtra@HEAD != 1.4.0]
  • knitr [1.46 != 1.48]
  • MASS [7.3-60.0.1 != 7.3-61]
  • Matrix [1.6-5 != 1.7-0]
  • nlme [3.1-164 != 3.1-166]
  • openssl [repo: RSPM != CRAN; ver: 2.1.1 != 2.2.1]
  • ps [1.7.6 != 1.7.7]
  • Rcpp [repo: RSPM != CRAN; ver: 1.0.12 != 1.0.13]
  • rlang [repo: RSPM != CRAN; ver: 1.1.3 != 1.1.4]
  • rmarkdown [2.26 != 2.28]
  • stringi [repo: RSPM != CRAN; ver: 1.8.3 != 1.8.4]
  • systemfonts [1.0.6 != 1.1.0]
  • tinytex [0.50 != 0.52]
  • withr [3.0.0 != 3.0.1]
  • xfun [0.43 != 0.47]
  • yaml [repo: RSPM != CRAN; ver: 2.3.8 != 2.3.10]

The lockfile was generated with R 4.3.2, but you're using R 4.4.0.

@langtonhugh
Copy link
Owner

Could you download R 4.3.2, switch to that version with RStudio, and then re-try? You can download old versions from the CRAN website and then you can switch the version you are using from within RStudio (Tools -> Global Options -> General). Let me know if that works!

@JonnaLind
Copy link
Author

JonnaLind commented Sep 9, 2024 via email

@langtonhugh
Copy link
Owner

langtonhugh commented Sep 9, 2024

If you cannot download different versions of R, you can still try and build the report. The warning you are seeing is related to the renv package, which manages libraries, rather than this tool itself. You can build a report without any usage of renv / ignoring different package versions, and while using a different version of R (although it's not ideal!).

@JonnaLind
Copy link
Author

JonnaLind commented Sep 9, 2024 via email

@langtonhugh
Copy link
Owner

langtonhugh commented Sep 9, 2024

If you follow the instructions, are you able to produce a report (even if there are warnings)?

@JonnaLind
Copy link
Author

JonnaLind commented Sep 9, 2024 via email

@langtonhugh
Copy link
Owner

langtonhugh commented Sep 9, 2024

You can ignore the warnings but it is not ideal, because your R environment will not match the environment used when we built and tested the tool (i.e., the same R version, the same R package versions).

I would recommend reading more about renv package to understand the warning properly. In short, running renv::restore() and matching the version of R (like this) might fix the problem. If you still have problems, you are welcome to contact me via email, since this is more generic advice about R and renv, rather than specific issues with the report tool.

That said, I will update the README with some more information about renv so that new users can get the tool running more easily. Thanks for raising the issue.

@JonnaLind
Copy link
Author

JonnaLind commented Sep 9, 2024 via email

@langtonhugh
Copy link
Owner

langtonhugh commented Sep 9, 2024

That said, apologies, a correction: there are some sync issues on my own machine that I had not noticed. I have now updated the lockfile, so please re-clone/download the repository, execute renv::restore() and see whether that fixes the problem (ideally, please also match the R version with the lockfile).

@JonnaLind
Copy link
Author

I set R to 4.3.2, opend the project, ran renv::restore(). But I did get an error message - can you give me any hints on how to deal with this?

Kind regards, Jonna

Error: Error installing package 'MASS':

  • installing source package 'MASS' ...
    ** package 'MASS' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
    'make' not found
  • removing 'C:/Users/JLind/StichtingArq/KC Oorlog Algemeen - Documenten/Bibliotheek/Beheer/Systemen/ASReview/IRR/IRR met R 432/asreview_irr-v.1.0-alpha/renv/staging/1/MASS'
    install of package 'MASS' failed [error code 1]

@langtonhugh
Copy link
Owner

langtonhugh commented Oct 4, 2024

Do you have Rtools installed? If not (or if you are not sure), try installing Rtools, restart RStudio, and run renv::restore() again. If you are on R version 4.3.2 you can install Rtools here: https://cran.r-project.org/bin/windows/Rtools/rtools43/rtools.html.

@JonnaLind
Copy link
Author

I installed Rtools from your link, ran renv again, but got a new error message , see the file.
foutmelding R 20241010.txt
Can you help me again?
My Rtools is installed in C:\Users\JLind\OneDrive - StichtingArq\programfiles\rtools43, I don't know if that makes a difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants