Cannot install github package, lazy error

Hi I'm trying to download a github package and I keep getting this error. I'm not sure how to fix.

devtools::install_github("ethanplunkett/rasterPrep")
Downloading GitHub repo ethanplunkett/rasterPrep@HEAD
√ checking for file 'C:\Users\Sara's Desktop\AppData\Local\Temp\RtmpMBX0H8\remotes18243ebe6345\ethanplunkett-rasterPrep-2ab1d26/DESCRIPTION'

  • preparing 'rasterPrep':
    √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'rasterPrep_0.1.4.tar.gz'

Installing package into ‘C:/Users/Sara's Desktop/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package 'rasterPrep' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error: unexpected symbol in "setwd('C:/Users/SARA'S"
    Execution halted
    ERROR: lazy loading failed for package 'rasterPrep'
  • removing 'C:/Users/Sara's Desktop/Documents/R/win-library/4.0/rasterPrep'
    Error: Failed to install 'rasterPrep' from GitHub:
    (converted from warning) installation of package ‘C:/Users/SARA'S~1/AppData/Local/Temp/RtmpMBX0H8/file182419525b6a/rasterPrep_0.1.4.tar.gz’ had non-zero exit status

R has problems with non-ASCII characters and empty spaces on Windows user names, either change your username to something safer or install into the system level package library instead.

You can change the defaul library by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file, for example.

# In .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.2\\library"

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.