Closed pawelru closed 6 months ago
I can't reproduce this:
❯ x <- pkgdepends::new_pkg_deps("pkgdepends")
❯ x$solve()
✔ Loading metadata database ... done
❯ packageVersion("pkgdepends")
[1] ‘0.7.2’
Are you on R 4.4.0? I just installed this today and got this.
❯ packageVersion("pkgcache")
[1] ‘2.2.2’
❯ getRversion()
[1] ‘4.4.0’
You can try tracing .make_numeric_version()
.
Thanks for the hint. I introduced a debug statement and after a few of correct runs I managed to find the following:
Browse[1]> c
Tracing .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) on entry
Called from: asNamespace("rstudioapi")$getVersion()
Browse[1]> x
[1] 0
Browse[1]> typeof(x)
[1] "double"
Browse[1]> asNamespace("rstudioapi")$getVersion
function() {
numeric_version(0)
}
<environment: 0x108ad2818>
I have:
> packageVersion("rstudioapi")
[1] ‘0.15.0’
but it seems to work with version 0.16.0 as well.
Going deeper into this:
r$> packageVersion("rstudioapi")
[1] ‘0.16.0’
r$> rstudioapi::getVersion()
Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
invalid non-character version specification 'x' (type: double)
r$> rstudioapi::versionInfo()
Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
invalid non-character version specification 'x' (type: double)
r$> rstudioapi::versionInfo
function() {
list(
citation = "",
mode = "vscode",
version = numeric_version(0),
release_name = "vscode"
)
}
<environment: 0x10dc18e18>
Next step:
r$> environment(rstudioapi:::findFun)$.vsc_rstudioapi_env$versionInfo
function() {
list(
citation = "",
mode = "vscode",
version = numeric_version(0),
release_name = "vscode"
)
}
<environment: 0x152094018>
But now I don't really know where .vsc_rstudioapi_env
is defined...
ok got it https://github.com/REditorSupport/vscode-R/blob/v2.8.2/R/session/rstudioapi.R#L240
I guess that means that you can close the issue
This is probably connected with this: https://stat.ethz.ch/pipermail/r-devel/2023-July/082723.html