Skip to content

vroom() deprecation warning in gen_cube() with vroom >= 1.5.0 #77

@Lit-Fam

Description

@Lit-Fam

Hello,

When using restatis::gen_cube() to download data from the Regio database, I get the following lifecycle warning:

Warning message:
The `file` argument of `vroom()` must use `I()` for literal data as of vroom 1.5.0.

Example:

library(restatis)  
  
gen_cube(  
  name = "82000KJ008",  
  database = "regio",  
  credential_list = list(  
    regio = c(  
      username = Sys.getenv("REGIO_UID"),  
      password = Sys.getenv("REGIO_PWD")  
    )  
  )  
)

Output:

  • The data downloads and loads correctly into a tibble, but the warning is shown once per session.

Package versions:

packageVersion("restatis") # 0.4.0
packageVersion("readr") # 2.1.6

System info:

  • R version: 4.4.3
  • RStudio Server in a Docker container on Debian

It seems that gen_cube() (via read_cube() -> read_lines() -> vroom_lines()) is passing literal CSV data to vroom() without I(), which triggers the deprecation warning in vroom >= 1.5.0.

The data still loads correctly, so this is not critical, but updating the internal call to wrap literal CSV strings with I() would suppress the warning and future-proof the package.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions