Closed stela2502 closed 2 years ago
This is unlikely to be a problem with devtools. I suspect it's a problem with your machine, e.g. perhaps some corruption in your package library.
Thank you for this info. I will try with a new library and get back to you.
It is quite strange, as I actually had installed the system the day before. I had only started to use R the day this issue occurred. But I'll nuke my lib and restart ;-)
THANK YOU! This error reproducibly occured when dirt-upgrading from Ubuntu 20.04 to 22.04. And yes removing my whole R library and re-installing everything did do the trick! A whole work day down the drain ;-) But thanks to you not more days!
Crap - the error is back. Do you have any idea on how to debug this? I have removed my personal library and re-installed devtools. Seams I do not have the right compiler? Or am I wrong?
I really think that is some error in devtools:
> source('tests/testthat/test-entropy.R')
Fehler: Reason: useless and depricated
> devtools::test(filter='entropy')
ℹ Loading FastWilcoxTest
ℹ Testing FastWilcoxTest
✔ | F W S OK | Context
✔ | 1 0 | entropy
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Fehler: ungültige Versionsspezifikation ‘0.68’
And the error (Fehler) seams to be some C stuff I do not understand. All - really all - functions work is not started with devtools::test but source. I have even checked the two last functions of the backtrace:
gettextf("some test: %s",sQuote( 2131))
[1] "some test: ‘2131’"
I do not understand this error - can you please help me?
Oh and the two relevant lines in the test script are:
context( 'entropy')
skip('useless and depricated')
ARGH - now I have hit the bottom of this error:
> R_system_version("4.2")
Fehler: ungültige Versionsspezifikation ‘4.2’
> R_system_version("4.2.3")
[1] ‘4.2.3’
So it is some issue with devtools after all. Could you please check this? It seams what one should do here is a
>numeric_version("0.68")
[1] ‘0.68’
> R_system_version("0.68")
Fehler: ungültige Versionsspezifikation ‘0.68’
Thank you!
Hi again. It was the cli package. Installing that one from github instead of cran fixed my problem.
I also experience this on Ubuntu 22.04, triggered by devtools::test()
after tests run through.
After installing cli
from GitHub and restarting R session the problem went away (but there might be another explanation).
I wonder how you get to you statement "but there might be another explanation". The error was thrown by the cli package and installing an update of the package solved the problem. Can you please come up with another explanation if you assume there is one? Or is that your general strategy?
I think this is fixed in https://github.com/r-lib/cli/pull/452 . This was unfortunately merged one day after (26 April 2022) the last cli
version on CRAN. The underlying problem is with the environment variable VTE_VERSION
, which is incorrectly handled by cli
.
I was going to link this here, too. bbolker - Thank you!
Hi devtools developer, recently I upgraded to Ubuntu 22.04 and R 4.2.1 and out of the blue my package fails tests with an Error: invalid version specification ‘0.68’ I know this error does not come from my package as the test script run line by line in the R interface does not produce such an error. The traceback of the Error:
and the package that is not testing is my FastWilcoxTest package: https://github.com/sonejilab/FastWilcoxTest. This is horribly inconvenient as I need to find a bug in that package. Please help me! Thank you!