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

pulldata("pantheria") not working #43

Closed
rplewes opened this issue Mar 29, 2021 · 4 comments
Closed

pulldata("pantheria") not working #43

rplewes opened this issue Mar 29, 2021 · 4 comments

Comments

@rplewes
Copy link

rplewes commented Mar 29, 2021

There is an error in pantheria.R code that is causing pulldata("pantheria") not
to work.

amniota needs to be changed to pantheria and
read.csv needs to be changed to read.delim

amniota <- utils::read.csv("PanTHERIA_1-0_WR05_Aug2008.txt",
fileEncoding = "UTF-8",
stringsAsFactors = FALSE)

pantheria <- utils::read.delim("PanTHERIA_1-0_WR05_Aug2008.txt",
fileEncoding = "UTF-8",
stringsAsFactors = FALSE)

lauterbur added a commit to lauterbur/traitdataform that referenced this issue Jun 28, 2021
change amniota to pantheria
change read.csv to read.delim
@JELLY1
Copy link

JELLY1 commented Feb 1, 2022

mammaldiet is also not working

# to import a dataset
pulldata("mammaldiet")

I get the following error: Direct call to data source failed. Please check internet connectivity and re-load data!

My internet connection is fine and I was able to load 'carabids'

@fdschneider
Copy link
Member

fdschneider commented Feb 2, 2022

As described in #47, those data URLs at Dryad are highly unstable and may break once in a while. Apparently they changed their API again. The original dataset is found at http://doi.org/10.5061/dryad.6cd0v.

The call for the carabids dataset employs the package suppdata, which takes care of changing URLs.

I just updated this for mammaldata, but it is not on CRAN, so you would need to re-install the development version using devtools::install_github('EcologicalTraitData/traitdataform').

@JELLY1
Copy link

JELLY1 commented Feb 2, 2022 via email

@fdschneider
Copy link
Member

Also, since the original issue topic was still unanswered, @rplewes @lauterbur, I fixed the pantheria script, too (e9c52fd).
But since the pantheria dataset is very complex, further attributes and an extended thesaurus for mapping the traits would be required to enable the handling of this dataset into a standardised form. Pull requests to fill this gap are welcome (see how it is done for arthropodtraits). Otherwise I will remove those additional data from the package in the long run.

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