Skip to content

Can't install pre-built without Rtools #856

@jcolgin-usgs

Description

@jcolgin-usgs

Hello, I am attempting to install pak per the documentation for pre-built binaries (bold added for emphasis):

Our pre-built binaries have the advantage that they are completely self-contained and dependency free. No additional R packages, system libraries or tools (e.g. compilers) are needed for them. Install a pre-built binary build of pak from our repository on GitHub:

install.packages("pak", repos = sprintf( "https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))

Pak downloads but fails to install. Here are the warnings:

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/

Warning: unable to access index for repository https://r-lib.github.io/p/pak/stable/win.binary/mingw32/x86_64/src/contrib:
cannot open URL 'https://r-lib.github.io/p/pak/stable/win.binary/mingw32/x86_64/src/contrib/PACKAGES'
Warning: unable to access index for repository https://r-lib.github.io/p/pak/stable/win.binary/mingw32/x86_64/bin/windows/contrib/4.5:
cannot open URL 'https://r-lib.github.io/p/pak/stable/win.binary/mingw32/x86_64/bin/windows/contrib/4.5/PACKAGES'
Warning message:
package ‘pak’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

That warning sounds a bit counter-intuitive, or I'm not fully understanding the nature of pre-builts and pak. I do not have Rtools installed. My R version is 4.5.3. Thanks in advance for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions