-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Package: installr
Type: Package
Title: Using R to Install Stuff on Windows OS (Such As: R, 'Rtools', 'RStudio', 'Git', and More!)
Version: 0.23.4
Date: 2022-11-13
R version: 4.2.1
Trying to install pandoc returns me error:
> install.pandoc()
trying URL 'https://github.com/'
downloaded 217 KB
The file was downloaded successfully into:
C:\Users\XXX~1\AppData\Local\Temp\Rtmp0EQhad/github.com
Running the installer now...
This version of C:\Users\XXX~1\AppData\Local\Temp\Rtmp0EQhad\github.com is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
Basically, the URL page given by default does not contain the name and location of the downloadable files, so it cannot find it and downloads nothing. I guess github has changed their page code, so I have found an alternative.
FIX I have found that manually set the variable "URL" with the following url "https://api.github.com/repos/jgm/pandoc/releases/latest" resolves the issue
It appears nothing else needs to be changed. Thankfully, I can apply the new URL directly, so the emergency to update the code is not high.
Thank you for your work.