[R] Can't load package 'lars'

Luc Villandre luc.villandre at mail.mcgill.ca
Tue Dec 6 03:33:02 CET 2011


Hi,

I installed package 'lars' earlier tonight and did not get any sort of 
error message.

###
** building package indices ...
** testing if installed package can be loaded
Loaded lars 0.9-8

* DONE (lars)
###

However, when I try to load it, I get
###
 > library(lars, lib.loc = "~/R/x86_64-redhat-linux-gnu-library/2.11")
Error : .onLoad failed in loadNamespace() for 'lars', details:
call: cat("Loaded lars", utils::installed.packages()["lars", "Version"],
error: subscript out of bounds
Error: package/namespace load failed for ‘lars’
###

Session info:

###
 > sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] 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
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

loaded via a namespace (and not attached):
[1] rpart_3.1-50 tools_2.14.0
###

I get the same error message when I try to load it on another machine:

###

 > library("lars",lib.loc = "~/R/i686-pc-linux-gnu-library/2.12")
Error : .onLoad failed in loadNamespace() for 'lars', details:
call: cat("Loaded lars", utils::installed.packages()["lars", "Version"],
error: subscript out of bounds
Error: package/namespace load failed for 'lars'
###

Session info:

###
 > sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i686-pc-linux-gnu (32-bit)

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

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

loaded via a namespace (and not attached):
[1] tools_2.13.1
###

Is there at least a way to circumvent the problem?

Thank you for your help,

Luc Villandre



More information about the R-help mailing list