r - Error in install.packages : type =="both" cannot be used with 'repos =NULL' -


actually trying install packages offline. have r studio. based on asked question follows:

install.packages(c:/users/desktop/class_7.3-12.zip", repos = null) 

i error mentioned in title. out there give me advice ?

thanks

you can install packages source or binaries. in "package archives" section of documentation may read:

package source class_7.3-12.tar.gz

windows binary class_7.3-12.zip

(32- & 64-bit) mac os x 10.9 (mavericks) class_7.3-12.tgz

when installing binary (as seems case):

install.packages("class_7.3-12.zip", repos = null, type="binary") 

otherwise, when installing source:

install.packages("class_7.3-12.tar.gz", repos = null, type="source") 

Comments