[R] Can't load package 'lars'

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Dec 6 14:01:26 CET 2011



On 06.12.2011 03:33, Luc Villandre wrote:
> 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")

Are you sure it is installed at the location you specified?

Uwe Ligges



> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list