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 open the connection to 'https://huggingface.co #288

Open
YQ303 opened this issue Sep 12, 2024 · 4 comments
Open

cannot open the connection to 'https://huggingface.co #288

YQ303 opened this issue Sep 12, 2024 · 4 comments

Comments

@YQ303
Copy link

YQ303 commented Sep 12, 2024

I encountered following connecting issues for almost all functions in the package.

validate_names(species.list)
Error in open.connection(con, "rb") :
cannot open the connection to 'https://huggingface.co/api/datasets/cboettig/fishbase/tree/main/data/fb'

I wonder if there is any possible solution, e.g. by mannually downloading necessary data?
Thanks for any suggestions!!!

@andybeet
Copy link

Which version of the package are you using? I dont see this issue using v5.0.0

packageVersion("rfishbase");
#> [1] '5.0.0'
  species_list <- c("Scomber scombrus","Pollachius virens","Pollachius virens");
  rfishbase::validate_names(species_list)
#> Joining with `by = join_by(Subfamily, GenCode, FamCode)`
#> Joining with `by = join_by(FamCode)`
#> Joining with `by = join_by(Order, Ordnum, Class, ClassNum)`
#> Joining with `by = join_by(Class, ClassNum)`
#> [1] "Scomber scombrus"  "Pollachius virens" "Pollachius virens"

Created on 2024-09-12 with reprex v2.1.0

@YQ303
Copy link
Author

YQ303 commented Sep 12, 2024

Thank you for your reply! I'm also using version '5.0.0'.
I have figured out that the error was caused by some network problem which, unfortunately, I could not solve.
So I'm still wondering whether I could avoid the network issue by mannually downloading necessary data?

@cboettig
Copy link
Member

@YQ303 you might try updating other packages too:

remotes::install_github("ropensci/rfishbase", deps=TRUE, upgrade=TRUE)

then restart R and try again?

You can attempt to access the data directly too at https://huggingface.co/datasets/cboettig/fishbase.

@YQ303
Copy link
Author

YQ303 commented Sep 13, 2024

Thanks!! I will try access the data directly !!

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