install - How to fix this error in R while installing packages? -


this did:

install.packages("tsa",lib="d:/r/packages")     library(tsa,lib.loc="d:/r/packages")     install.packages("leaps",lib="d:/r/packages")   

still getting error:

library(tsa,lib.loc="d:/r/packages")  #error: package ‘leaps’ required ‘tsa’ not found 

there package tsa cran. if want install it:

install.packages("tsa")

if have .tar.gz files. suggest using hadley wickham's devtoolspackage. allows loading package given directory:

library(devtools)  # load package w/o installing load_all('d:/r/packages')  # or invoke 'r cmd install' install('d:/r/packages') 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -