Page 1 of 1

Installing Apollo from zip file

Posted: 12 May 2020, 10:08
by sara
Hello,
I am installing "apollo_0.1.1" by this commend
install.packages("C:\apollo_0.1.1 .tar.gz", repos = NULL, type = "win.binary", lib="C:\Program Files\R\R-3.6.2\/library").
,but I get this error "Error: '\U' used without hex digits in character string starting ""C:\U"
Would you please kindly guide me how can I repair it?
Many thanks,
Sara

Re: install a package from zip file

Posted: 12 May 2020, 13:40
by stephanehess
Hi Sara

you need to use / instead of \

It is also possible to do this via the menu in RStudio (tools-install packages) which will make it easier for you

Stephane

Re: install a package from zip file

Posted: 12 May 2020, 13:47
by sara
Thank you for your reply.
When I try via (tools-install packages). I get the following error.
> install.packages("C:/Users/Sadr/Desktop/apollo_0.1.1 .tar", repos = NULL)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Error in install.packages : type == "both" cannot be used with 'repos = NULL'
Many thanks,
Sara

Re: install a package from zip file

Posted: 12 May 2020, 16:13
by stephanehess
Hi Sara

you need to install from the binaries rather than the soruce file

Best wishes

Stephane