Skip to content

Error: invalid version specification ‘6003’ #441

@JohnCoene

Description

@JohnCoene

I originally opened an issue on testthat: r-lib/testthat#1597
This is where I first encountered the issue.

Going through the traceback it seems to be caused by:

if (nzchar(VTE_VERSION <- Sys.getenv("VTE_VERSION"))) {

On my machine:

 Sys.getenv("VTE_VERSION")
#> "6003"

package_version("6003")
#> Error: invalid version specification ‘6003’

It throws this error: https://github.com/wch/r-source/blob/cd17e8a41e33186af6aee0f17b4e558540ba8e5c/src/library/base/R/version.R#L51

R version 4.1.3 (2022-03-10) -- "One Push-Up"
Platform: x86_64-pc-linux-gnu (64-bit)

r$> sessioninfo::session_info()                                                                       
─ Session info ─────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.1.3 (2022-03-10)
 os       Linux Mint 20.3
 system   x86_64, linux-gnu
 ui       X11
 language en_US
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Europe/Zurich
 date     2022-03-30
 pandoc   2.5 @ /usr/bin/pandoc

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────
 package     * version    date (UTC) lib source
 cli           3.2.0      2022-02-14 [1] CRAN (R 4.1.2)
 sessioninfo   1.2.2.9000 2022-03-30 [1] Github (r-lib/sessioninfo@27965c2)

 [1] /home/john/R/x86_64-pc-linux-gnu-library/4.1
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library

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