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

package ‘install_github’ is not available for this version of R #812

Closed
nest125 opened this issue Sep 26, 2024 · 12 comments
Closed

package ‘install_github’ is not available for this version of R #812

nest125 opened this issue Sep 26, 2024 · 12 comments

Comments

@nest125
Copy link

nest125 commented Sep 26, 2024

Hello all!

I am receiving the above message. I have R 4.4.1.

This is in relation to trying to install the package "rethinking" which also has this error message:

" package ‘rethinking’ is not available for this version of R"

Any help and/or assistance is greatly appreciated.

@gaborcsardi
Copy link
Member

You are clearly doing something wrong.

@nest125
Copy link
Author

nest125 commented Sep 28, 2024

Hello!

Yep - I can see that. Any help and/or assistance in resolving this is greatly appreciated! Thanks!

@gaborcsardi
Copy link
Member

There is no R package called install_github. What are you trying to do? What is the code that you are running? What is the output you get?

@nest125
Copy link
Author

nest125 commented Sep 28, 2024

Hello again!

Whoops! The title should read: 'package 'rethinking' is not availabe for this version or R. Thank you for pointing that out. I appreciate it!

@gaborcsardi
Copy link
Member

What is the code that you are running? What is the output you get? What is your OS? What is your R version? What is the output of getOption("repos")?

@nest125
Copy link
Author

nest125 commented Sep 28, 2024

Hello again! The package 'rethinking' is part of the Statistical learning book by McElreath. OS = Windows and this is the output for 'getoption("repos"):
CRAN
"https://cran.rstudio.com/"
attr(,"RStudio")
[1] TRUE

@gaborcsardi
Copy link
Member

gaborcsardi commented Sep 28, 2024

What is the code that you are running? What is the output you get? What is your R version?

@nest125
Copy link
Author

nest125 commented Sep 28, 2024

Hello again!

My R version is 4.4.1. When I try an install the 'rethinking' I get this line:
"package ‘rethinking’ is not available for this version of R"

@gaborcsardi
Copy link
Member

gaborcsardi commented Sep 28, 2024

What is the exact code that you are running? What is the exact output you get?

@dragosmg
Copy link

Maybe relevant piece of information from the {rethinking} Readme (https://github.com/rmcelreath/rethinking?tab=readme-ov-file#installation):

Note that the rethinking package is not on CRAN, just on github. The rethinking package is never going to be on CRAN. So if you get an error about rethinking not being available for your version of R, it is because you tried to install from CRAN. Use the github code above.

@gaborcsardi
Copy link
Member

I guess you are trying to install this: https://github.com/rmcelreath/rethinking
Which also needs https://github.com/stan-dev/cmdstanr
So this might work:

remotes::install_github("stan-dev/cmdstanr")
remotes::install_github("rmcelreath/rethinking")

Or, if you want to give pak a try then

pak::pkg_install(c("stan-dev/cmdstanr", "rmcelreath/rethinking"))

In any case, this is not an issue with the remotes package, so I am going to close this.

@nest125
Copy link
Author

nest125 commented Sep 28, 2024

Hello again!

Thank you for the help! I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants