kbroman / RqtlWorkshop

Materials for a 1-day workshop on R/qtl and R/qtl2
Other
0 stars 1 forks source link

# ERRORs: "Loading required package: sp" "there is no package called ‘sp’" #1

Closed moko-moko closed 6 years ago

moko-moko commented 7 years ago

I try your tutorial of "A shorter tour of R/qtl (rqtltour2.pdf)".

nind(sug) [1] 163 Loading required package: sp nchr(sug) [1] 19 Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘sp’

What happened? It would be greatly appreciated if you could explain the details.

kbroman commented 7 years ago

Hmm; strange. I've never seen this, and I unfortunately have no idea why it would occur. The sp package is for spatial data, and has no relation to R/qtl. I don't understand why R would be trying to load the sp package.

What other packages do you have loaded? Type sessionInfo() to see.

lucianainpa commented 6 years ago

Hello, I have the same problem.

library("sp", lib.loc="/usr/local/lib/R/site-library") Error in library("sp", lib.loc = "/usr/local/lib/R/site-library") : there is no package called ‘sp’ library("sp", lib.loc="/usr/local/lib/R/site-library") Error in library("sp", lib.loc = "/usr/local/lib/R/site-library") : there is no package called ‘sp’

kbroman commented 6 years ago

Try install.packages("sp").

But the sp package shouldn't be needed for R/qtl. Can you show me the output of sessionInfo()?

lucianainpa commented 6 years ago

Hi @kbroman

I installed the "sp" package and it worked. Thanks

mohammed-abdulrahman commented 5 years ago

Thanks kbroman for this platform. I am getting the error: Error in inla.call.builtin() : INLA installation error; no such file Also I am getting at the start of R the error: Loading required package: sp Please help me to fix them.

kbroman commented 5 years ago

@mohammed-abdulrahmen Could you use copy-paste to show exactly what you’re typing, and the exact error messages?

kbroman commented 5 years ago

@mohammed-abdulrahman Your code has no relationship to the present repository, and so this isn't an appropriate place to seek help. I would contact the authors of the code you're trying to get working.

mohammed-abdulrahman commented 5 years ago

Also when starting R I am getting the message: Loading required package: sp

mohammed-abdulrahman commented 5 years ago

Error: package ‘sp’ required by ‘INLA’ could not be found

kbroman commented 5 years ago

@mohammed-abdulrahman As mentioned above, try install.packages("sp")

But neither the sp package nor INLA are required by R/qtl, and so it's not clear what relationship that has to this R/qtl workshop repository.

mohammed-abdulrahman commented 5 years ago

Thanks all... The problem is which should be installed first? INLA or sp>>> Now it is working...