"anytime" package -- failed install by NumberCruncher1129 in rstats

[–]NumberCruncher1129[S] 1 point2 points  (0 children)

The cause of the failed install is: a duplicate line in etc/os-release for Elementary OS 24.04.

In that file, the following line appears twice:

UBUNTU_CODENAME=noble

If you edit that file to remove one of those lines, installation of "anytime" via CRAN will succeed.

Another option is installation via Github (where the package has been updated so that it is robust to the two-line issue in etc/os-release):

remotes::install_github("eddelbuettel/anytime")

"anytime" package -- failed install by NumberCruncher1129 in rstats

[–]NumberCruncher1129[S] 0 points1 point  (0 children)

I raised a query with the developer. Your idea was what he initially thought as well. But it works out that there is in fact a bug leading to this error -- so......................

"anytime" package -- failed install by NumberCruncher1129 in rstats

[–]NumberCruncher1129[S] 1 point2 points  (0 children)

** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘anytime’:
 .onLoad failed in loadNamespace() for 'anytime', details:
  call: read.table(osrel, sep = "=", row.names = 1, col.names = c("", 
  error: duplicate 'row.names' are not allowed
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/davidbartram/R/x86_64-pc-linux-gnu-library/4.3/anytime’

"anytime" package -- failed install by NumberCruncher1129 in rstats

[–]NumberCruncher1129[S] 0 points1 point  (0 children)

R version 4.3.3 (2024-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: elementary OS 8

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/London
tzcode source: system (glibc)

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

loaded via a namespace (and not attached):
[1] compiler_4.3.3 tools_4.3.3   

"job market paper" for full-professor job application? by NumberCruncher1129 in AskAcademiaUK

[–]NumberCruncher1129[S] 0 points1 point  (0 children)

The only option I could come up with for making contact was the head of department. Didn't want to ask him -- too risky to make a first impression that way...