CorrelAid / CorrelAid/restatis

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

Open Beginner friendly
#77 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
36
Forks
6
Avg merge
8m
Merged PRs (30d)
2

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the gen_cube() path described in the issue, tracing read_cube() through read_lines() to vroom_lines(), and reproduce the warning with the provided example. Done means the literal CSV data still loads into a tibble without the vroom() deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.