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

R version and package versions not up to date #26

Open
1 task
judith-bourque opened this issue Jan 23, 2023 · 1 comment
Open
1 task

R version and package versions not up to date #26

judith-bourque opened this issue Jan 23, 2023 · 1 comment

Comments

@judith-bourque
Copy link
Member

judith-bourque commented Jan 23, 2023

Issue

When I opened the Rproject for branch #25, I got the following error message:

# Bootstrapping renv 0.15.4 --------------------------------------------------
* Downloading renv 0.15.4 ... OK
* Installing renv 0.15.4 ... Done!
* Successfully installed and loaded renv 0.15.4.
* Project '~/Dropbox/github/clessn/hublotr' loaded. [renv 0.15.4]
Warning message:
This project is configured to use R version '3.6.3', but '4.2.2' is currently being used. 
* The project library is out of sync with the lockfile.
* Use `renv::restore()` to install packages recorded in the lockfile.

With further inspection, here's what I learned

> renv::status()
The following package(s) are installed but not recorded in the lockfile:
             _
  tidyjson     [0.3.2]
  bit64        [4.0.5]
  progress     [1.2.2]
  tidyselect   [1.2.0]
  bit          [4.0.5]
  readr        [2.1.3]
  generics     [0.1.3]
  vroom        [1.6.1]
  dplyr        [1.0.10]
  hms          [1.1.2]
  tzdb         [0.3.0]
  tidyr        [1.2.1]
  assertthat   [0.2.1]

Use `renv::snapshot()` to add these packages to your lockfile.

The following package(s) are out of sync:

     Package   Lockfile Version   Library Version
        Rcpp              1.0.9            1.0.10
        brew              1.0-7             1.0-8
       bslib              0.4.0             0.4.2
       callr              3.7.1             3.7.3
         cli              3.3.0             3.6.0
  commonmark              1.8.0             1.8.1
       cpp11              0.4.2             0.4.3
      crayon              1.5.1             1.5.2
        curl              4.3.2             5.0.0
        desc              1.4.1             1.4.2
    devtools              2.4.4             2.4.5
      digest             0.6.29            0.6.31
    evaluate               0.15              0.20
       fansi              1.0.3             1.0.4
 fontawesome              0.3.0             0.4.0
        gert              1.6.0             1.9.2
          gh              1.3.0             1.3.1
    gitcreds              0.1.1             0.1.2
       highr                0.9              0.10
   htmltools              0.5.3             0.5.4
 htmlwidgets              1.5.4             1.6.1
      httpuv              1.6.5             1.6.8
        httr              1.4.2             1.4.4
    jsonlite              1.8.0             1.8.4
       knitr               1.39              1.41
   lifecycle              1.0.1             1.0.3
     openssl              2.0.0             2.0.5
      pillar              1.8.0             1.8.1
    pkgbuild              1.3.1             1.4.0
     pkgdown              2.0.6             2.0.7
     pkgload              1.3.0             1.3.2
    processx              3.7.0             3.8.0
          ps              1.7.1             1.7.2
       purrr              0.3.4             1.0.1
        ragg              1.2.2             1.2.5
       rlang              1.0.4             1.0.6
   rmarkdown               2.14              2.20
    roxygen2              7.2.1             7.2.3
  rstudioapi               0.13              0.14
   rversions              2.1.1             2.1.2
        sass              0.4.2             0.4.4
       shiny              1.7.2             1.7.4
     stringi              1.7.8            1.7.12
     stringr              1.4.0             1.5.0
         sys                3.4             3.4.1
    testthat              3.1.4             3.1.6
     tinytex               0.40              0.43
       vctrs              0.4.1             0.5.1
     whisker                0.4             0.4.1
        xfun               0.31              0.36
        yaml              2.3.5             2.3.6
         zip              2.2.0             2.2.2

Use `renv::snapshot()` to save the state of your library to the lockfile.
Use `renv::restore()` to restore your library from the lockfile.

Proposed solution

  • Use renv::snapshot() to add the packages to your lockfile.
@judith-bourque
Copy link
Member Author

Proposed solution

Replace renv with package version dependencies in DESCRIPTION.

Example: https://github.com/tidyverse/dplyr/blob/1068096d5cf8ce2d442d91fc376e20e97ea32a61/DESCRIPTION#L22-L37

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

1 participant