When trying to install a package in RStudio created by my university, I get the following error message:
* installing *source* package 'namePackage' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Fatal error: cannot open file 'C:\\Users\\firstName': No such file or directory
My working directory is set to 'C:\\Users\\firstName lastName\\Documents\\Case Econometrics\\Input'
, and the package I am trying to install using the command
install.packages("namePackage.tar.gz", source = TRUE, repos = NULL)
is in the 'Input' directory.
Is there anyone who knows why it doesn't work to install the package?
Thanks in advance!
try this below. I think your slashes are wrong. you should use forward slashes.
install.packages('C:/Users/firstName lastName/Documents/Case Econometrics/Input/namePackage.tar.gz', type="source", repos = NULL)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.