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

Eurostat package, error #113

Open
Camila-RV opened this issue Nov 9, 2016 · 1 comment
Open

Eurostat package, error #113

Camila-RV opened this issue Nov 9, 2016 · 1 comment

Comments

@Camila-RV
Copy link

Camila-RV commented Nov 9, 2016

Hey guys,
We're trying to get data from Eurostat package.
After following the CRAN instructions of suggested library packages and vignettes, it is still showing the same error.

Here is the code:

id <- search_eurostat('Energy technologies patent applications to 
                      the EPO by priority year', type = 'dataset')$code[1]

Error: 'cols' is not an exported object from 'namespace:readr'

Also tried using the code available on data set details:

dat <- get_eurostat('pat_ep_nrgpct')

Error: 'cols' is not an exported object from 'namespace:readr'

Thanks in advance!

@christophergandrud
Copy link
Contributor

Hi,

Two quick observations. Your search_eurostat returns an empty data frame (it doesn't find any data sets). So if you try to select the 1st row of the code column. You won't get anything.

So try id <- search_eurostat('energy', type = 'dataset')

That being said, I ran the second line of code and got the data.

The error you are getting means that the version of the readr package you have doesn't have a needed function called cols. This is probably because your version of the package is out of date. I would suggest updating all of your packages and re-running it. In RStudio:

screen shot 2016-11-09 at 13 46 36

Hope that helps!

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