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 fgeo.misc #24

Open
jess-shue opened this issue Feb 16, 2021 · 3 comments
Open

Cannot install fgeo.misc #24

jess-shue opened this issue Feb 16, 2021 · 3 comments

Comments

@jess-shue
Copy link

When attempting to load fgeo.misc using devtools, I receive the following error. Is there a way to redirect to the correct URL?

devtools::install_github("forestgeo/fgeo.misc")

Error: Failed to install 'fgeo.misc' from GitHub:
(converted from warning) unable to access index for repository https://forestgeo.github.io/drat/src/contrib:
cannot open URL 'https://forestgeo.github.io/drat/src/contrib/PACKAGES'

@maurolepore
Copy link
Contributor

Hi Jess!

I suspect the repos option points to a repository no longer use.

Can you share the output of getOption("repos")? Here is mine:

getOption("repos")
#>                      CRAN                      RSPM 
#>    "http://package-proxy" "http://cran.rstudio.org"

Created on 2021-02-17 by the reprex package (v1.0.0)

I suspect your output has 'https://forestgeo.github.io/drat/'. In any case, try setting repos to "http://cran.rstudio.org" then retry:

# What repos am I using
getOption("repos")
# Regardless, set repos to "http://cran.rstudio.org"
options(repos = "https://cran.rstudio.com/")
# Confirm
getOption("repos")

# Try again
devtools::install_github("forestgeo/fgeo.misc")

@jess-shue
Copy link
Author

Hi Mauro,
You are correct, I was using the forestgeo.github repo:
getOption("repos")
CRAN forestgeo
#> "https://cran.rstudio.com/" "https://forestgeo.github.io/drat"

Thank you very much for the help! I can now install fgeo.misc.

@maurolepore
Copy link
Contributor

It's possible that the old repo is configured in a file called ".Rprofile". You may access that file runing usethis::edit_r_profile() then delete "https://forestgeo.github.io/drat".

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

2 participants