unable to install pagedown

I am trying to install pagedown using remotes::install_github('rstudio/pagedown').
This is what happens:

Downloading GitHub repo rstudio/pagedown@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All
2: CRAN packages only
3: None
4: stringi (1.6.1 -> 1.6.2) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1
stringi (1.6.1 -> 1.6.2) [CRAN]
websocket (NA -> 1.4.0) [CRAN]
Installing 2 packages: stringi, websocket
Installing packages into ‘C:/Users/frenk/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
stringi 1.6.1 1.6.2 TRUE

Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/stringi_1.6.1.zip'
Content type 'application/zip' length 16348895 bytes (15.6 MB)
downloaded 15.6 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/websocket_1.4.0.zip'
Content type 'application/zip' length 4070729 bytes (3.9 MB)
downloaded 3.9 MB

package ‘stringi’ successfully unpacked and MD5 sums checked
Error: Failed to install 'pagedown' from GitHub:
** missing value where TRUE/FALSE needed**

It seems to me that it is unable to install websocket. I tried to istall websocket's .tar manually, but I got the error.

install.packages("C:/Users/frenk/Downloads/websocket_1.4.0.tar.gz", repos = NULL, type = "source", lib="C:/Program Files/R/R-4.1.0/library")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

  • installing source package 'websocket' ...
    ** package 'websocket' successfully unpacked and MD5 sums checked
    ** using staged installation
    WARNING: this package has a configure script
    It probably needs manual configuration

** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'websocket'
*** removing 'C:/Program Files/R/R-4.1.0/library/websocket'**
Warning in install.packages :
** installation of package ‘C:/Users/frenk/Downloads/websocket_1.4.0.tar.gz’ had non-zero exit status**

Trying to install pagedown's .tar gives the following error:

install.packages("C:/Users/frenk/Downloads/pagedown_0.14.tar.gz", repos = NULL, type = "source", lib="C:/Program Files/R/R-4.1.0/library")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

ERROR: dependency 'websocket' is not available for package 'pagedown'
*** removing 'C:/Program Files/R/R-4.1.0/library/pagedown'**
Warning in install.packages :
** installation of package ‘C:/Users/frenk/Downloads/pagedown_0.14.tar.gz’ had non-zero exit status**

I tried to install from R itself using the install packages tab:
utils:::menuInstallPkgs()
also installing the dependency ‘websocket’

trying URL '.../contrib/4.1/websocket_1.4.0.zip'
Content type 'application/zip' length 4070729 bytes (3.9 MB)
downloaded 3.9 MB

trying URL '.../contrib/4.1/pagedown_0.14.zip'
Content type 'application/zip' length 301416 bytes (294 KB)
downloaded 294 KB

Error in if (any(diff)) { : missing value where TRUE/FALSE needed

Here is the sessionInfo():
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
I am using latest Rstudio desktop version.

Stop trying to install from source, try not updating the packages which require compilation, or install R Tools.

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.