Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install pak 0.8.0 on Linux #680

Open
jameslairdsmith opened this issue Aug 30, 2024 · 4 comments
Open

Cannot install pak 0.8.0 on Linux #680

jameslairdsmith opened this issue Aug 30, 2024 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@jameslairdsmith
Copy link

I'm trying to install pak on Red Hat Enterprise Linux 7 (CPE OS Name: cpe:/o:redhat:enterprise_linux:7.9:GA:server"). I'm getting an error when pak tries to build its own HTML documentation. The error occurs when it reaches pkg_sysreqs.

pkg_search                              html  
pkg_status                              html  
pkg_sysreqs                             html  
Error:  attempt to apply non-function
* removing ‘/home/333573/R/x86_64-pc-linux-gnu-library/4.0/pak’
* restoring previous ‘/home/333573/R/x86_64-pc-linux-gnu-library/4.0/pak’
Warning in install.packages :
  installation of package ‘pak’ had non-zero exit status

It works fine on 0.7.2, so it must be something that happened in 0.8.0. Looking through the commit history, it seems like #666 is the most likely time it broke.

@gaborcsardi
Copy link
Member

Can you install a binary? As in https://pak.r-lib.org/reference/install.html#pre-built-binaries

@jameslairdsmith
Copy link
Author

Can you install a binary? As in https://pak.r-lib.org/reference/install.html#pre-built-binaries

Yes that file works. (Although the corporate nature of the network I'm on means I'm not able to install it directly from the URL.)

@gaborcsardi
Copy link
Member

You can also try

install.packages("pak", INSTALL_opts = "--no-html")

to avoid pre-building the HTML.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Aug 30, 2024
@jameslairdsmith
Copy link
Author

You can also try

install.packages("pak", INSTALL_opts = "--no-html")

to avoid pre-building the HTML.

I didn't know this was an option, but of course it makes complete sense that it's there. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants