简体   繁体   中英

Unable to install a package package in R

I am using with an version 3.6.2 . I already referred this post in forum but doesn't seem to help. The package can be found here

I am trying to install package but unfortunately it throws error as shown below. I get either of the below 2 errors

Error: Failed to install 'Aphrodite' from GitHub: (converted from warning) unable to access index for repository https://OHDSI.github.io/drat/bin/windows/contrib/3.6 : cannot open URL ' https://OHDSI.github.io/drat/bin/windows/contrib/3.6/PACKAGES '

Error: Failed to install 'Aphrodite' from GitHub: (converted from warning) installation of package 'C:/Users/test/AppData/Local/Temp/RtmpEzlckw/file29a84d6a1a43/Aphrodite_2.0.tar.gz' had non-zero exit status

Can someone help me resolve this error? I am not a tech person but any help to resolve this will be very useful

So the issue turned out to be the "error converted to warning" scenario, as described here

Setting Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true") before the install command solves the issue.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM