install.packages() in R

1k Views Asked by At

I am trying to install an R package from its source file. The package could be installed only on R.2.9.2. So I uninstall my new version of R, installed the mentioned version and tried to install package like this:

 install.packages(pathToPackage, repos="NULL", type="source")

But I am receiving this error:

  argument 'lib' is missing: using 'C:\Users\hora\Documents/R/win-library/2.9'
Warning: unable to access index for repository NULL/src/contrib
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘c://Users//hora//Downloads//affymicro.zip’ is not available

What is the solution? Thank you in advance.

0

There are 0 best solutions below