Skip to content

sessioninfo ver 1.2.3: conflicts with get_quatro_version #112

@efletcherPIFSC

Description

@efletcherPIFSC

This issue also affects users without renv

R project packages under renv conflict with sessionInfo version 1.2.3. Primarily where sessionInfo is attempting to get the quarto version.
This affects devtools::check and devtools::session_info.

Checking a R package under renv, via devtools::check(), will output this error.

  ERROR: Unknown command "TMPDIR=C:/Users/[username]/AppData/Local/Temp/RtmpQVxG6G/filefc86550135f". Did you mean command "create"?
   Warning message:
   In system2("quarto", "-V", stdout = TRUE, env = paste0("TMPDIR=",  :
     running command '"quarto" TMPDIR=C:/Users/[username]/AppData/Local/Temp/RtmpQVxG6G/filefc86550135f -V' had status 1

Projects attached with renv, sessioninfo::session_info (specifically sessioninfo::platform_info) will return "ERROR: Unknown Command" message for the quarto version.

Deactivating renv for the project, will alleviate the issue.

If R package project is dependent on renv, reverting sessionInfo to version 1.2.2 alleviates this renv conflict.

Reproduce

  • Create a new R package (RStudio: New Project > New Directory > R package > Create R Package and use renv with this project)
    • renv::install("devtools")
    • Add license
    • devtools::check()
      • Expect that R CMD check succeeded w/ ERROR: unknown command and Warning Message
    • sessioninfo::session_info()
      • Session Info message with "ERROR: unknown command ..." for quarto value; and Warning message

Session

> sessionInfo()
R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default



attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.4.1    gitcreds_0.1.2    tools_4.4.1       rstudioapi_0.16.0 yaml_2.3.8        renv_1.1.1       

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions