Cannot download from GitHub

I'm trying to download CMRnet package using

remotes::install_github("matthewsilk/CMRnet", build_vignettes = TRUE)

and I keep getting this error:

** byte-compile and prepare package for lazy loading
Error: unexpected symbol in "setwd('C:/Users/KYLA'S"
Execution halted
ERROR: lazy loading failed for package 'CMRnet'

  • removing 'C:/Users/Kyla's XPS/Documents/R/win-library/4.0/CMRnet'
    Error: Failed to install 'CMRnet' from GitHub:
    (converted from warning) installation of package ‘C:/Users/KYLA'S~1/AppData/Local/Temp/RtmpQP7KSL/file2484399a2b2b/CMRnet_0.1.0.tar.gz’ had non-zero exit status

When I try

remotes::install_github("matthewsilk/CMRnet", lib="C:/Program Files/R/R-4.0.3/library")

I get the same error. Any help would be much appreciated! It seems that it doesn't like the ' in Kyla's, but I can't rename a user folder and adding another user doesn't seem to work either. I don't have any issues with installing a package using install.packages()

This is due to empty spaces or non ASCII characters in your windows user name, Can you show the actual error message you get when you try to install into the system level package library?

Thank you for the help! It was the space, when I make a new user without any spaces or apostrophes I was able to download it by running Rstudio as an administrator and running

remotes::install_github("matthewsilk/CMRnet", lib="C:\\Program Files\\R\\R-4.0.3\\library")

This topic was automatically closed 21 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.