I’m an R novice attempting to install HADES following the instructions at Installing HADES. I have the github PAT configured as directed and I quit RStudio and restarted after doing so. Can anyone give me a hint what the problem is?
R version 4.3.1 (2023-06-16 ucrt) – “Beagle Scouts”
Failure output:
> install.packages("remotes")
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://repo.miserver.it.umich.edu/cran/bin/windows/contrib/4.3/remotes_2.4.2.1.zip'
Content type 'application/octet-stream' length 398531 bytes (389 KB)
downloaded 389 KB
package ‘remotes’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\jt365\AppData\Local\Temp\RtmpwbqtrL\downloaded_packages
> library(remotes)
> install_github("ohdsi/Hades", upgrade = "always")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo ohdsi/Hades@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/ohdsi/Hades/tarball/HEAD' failed
And now I’m back. HADES installation did not complete. Can anyone advise this R novice how to address this error?
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo ohdsi/Hades@HEAD
CohortMethod (NA -> e174be339...) [GitHub]
SelfContr... (NA -> 28cd3a6cb...) [GitHub]
Downloading GitHub repo ohdsi/CohortMethod@HEAD
Error: Failed to install 'Hades' from GitHub:
Failed to install 'CohortMethod' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
>
If I try following the debug advice, I get:
> pkgbuild::check_build_tools(debug = TRUE)
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
Note that I followed the instructions on the HADES installation page, which start with this command, which may be contributing to the failure?
Thank you. I should have reported that I had tried that:
> install_github("ohdsi/CohortMethod")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo ohdsi/CohortMethod@HEAD
Error: Failed to install 'CohortMethod' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
>
Thank you all. I had installed RTools, so I looked up how to verify installation and found this post that told me to check my PATH. My RStudio PATH contained c:\rtools43, but this page