Skip to content

Require R >= 4.1? #97

@dtburk

Description

@dtburk

We are getting R CMD Check errors on R 3.6 now. An example of the error is:

Error: --- re-building 'ipums-api-agg.Rmd' using rmarkdown
Quitting from ipums-api-agg.Rmd:150-152 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `vapply()`:
! values must be length 1,
 but FUN(X[[1]]) result is length 0
---
Backtrace:
    x
 1. \-vcr::insert_cassette("nhgis-metadata-summary")
 2.   \-webmockr::enable(quiet = vcr_c$quiet)
 3.     \-base::vapply(...)

Gemini suggests that this could be due to the fact that webmockr requires R >= 4.1, which means that when testing on R 3.6, we are forced to use an older version of webmockr, and perhaps the combination of an older version of webmockr with a newer version of vcr is leading to this error.

The easiest and most sustainable fix would probably be to up our minimum required R version to 4.1. Would you have any objections to that change @robe2037?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions