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

Have function to install {fivethirtyeightdata} package in {fivethirtyeight} #95

Open
ismayc opened this issue Sep 20, 2020 · 0 comments

Comments

@ismayc
Copy link
Collaborator

ismayc commented Sep 20, 2020

While it is easy to run install.packages('fivethirtyeightdata', repos = 'https://fivethirtyeightdata.github.io/drat/', type = 'source'), it would be simpler to have something like a get_larger_datasets() function that we could have pop up after people have run library(fivethirtyeight) as a message letting them know. The function could just directly be a wrapper as well:

get_larger_datasets <- function() {
    install.packages(
        'fivethirtyeightdata', 
        repos = 'https://fivethirtyeightdata.github.io/drat/', 
        type = 'source'
    )
    message("Remember to use `library(fivethirtyeightdata)` to retrieve any of these larger datasets.")
}
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

1 participant