Dear All, After upgrading to R-2.4.0-dapper2 (my system is ubuntu 6.06 LTS), I often met problems when loading some packages like Matrix. Here is the details:> library(Matrix)Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source keep.source) : in 'Matrix' methods specified for export, but none defined: Arith, Math, Math2, +, %*%, Schur, as.matrix, chol, colMeans, colSums, coerce, crossprod, determinant, diag, dim, dimnames, dimnames<-, expand, expm, kronecker, image, norm, rcond, rowMeans, rowSums, show, solve, t, tcrossprod Error: package/namespace load failed for 'Matrix' Here is my system:> sessionInfo()R version 2.4.0 (2006-10-03) i486-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] "methods" "stats" "graphics" "grDevices" "utils" "datasets" [7] "base" I have re-installed the packages after the upgrade. Anyone experienced the similar problems? Thanks for your help, FD [[alternative HTML version deleted]]
Dirk Eddelbuettel
2006-Dec-10 22:56 UTC
[R] Problem with loading "library(Matrix)" at Ubuntu
Frank, On 10 December 2006 at 15:58, Frank Duan wrote: | Dear All, | | After upgrading to R-2.4.0-dapper2 (my system is ubuntu 6.06 LTS), I often | met problems when loading some packages like Matrix. | | Here is the details: | | > library(Matrix) | Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source | keep.source) : | in 'Matrix' methods specified for export, but none defined: Arith, | Math, Math2, +, %*%, Schur, as.matrix, chol, colMeans, colSums, coerce, | crossprod, determinant, diag, dim, dimnames, dimnames<-, expand, expm, | kronecker, image, norm, rcond, rowMeans, rowSums, show, solve, t, tcrossprod | Error: package/namespace load failed for 'Matrix' | | Here is my system: | | > sessionInfo() | R version 2.4.0 (2006-10-03) | i486-pc-linux-gnu | | locale: | LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C | | attached base packages: | [1] "methods" "stats" "graphics" "grDevices" "utils" "datasets" | [7] "base" | | | I have re-installed the packages after the upgrade. Anyone experienced the | similar problems? | | Thanks for your help, This works for me. Are you sure you did 'update.packages()' for everything R-related, and also have current Ubuntu packages so that you have current compilers? Lastly, make sure you don't have Ubuntu's r-cran-matrix _and_ a direct installation via R... Hth, Dirk -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison