-
Get the 'CodeClanData' repo from CodeClan's GitHub.
-
Go to the file
data-raw/prep_data.R
. -
Define your dataset in this file. This can be as simple as reading a CSV file (put raw files in
data-raw/data
), or you might want to do a lot of cleaning or API calls. You can see some examples in this folder.
Note: we can't use files greater than 100MB on GitHub Note: try to put the code in the correct place alphabetically so it's easy to find later.
-
Once you've created your dataset, add a
use_data
function for your chosen data (see examples at the end ofprep_data.R
). -
Source the whole of
prep_data.R
. -
Now go to
R/documentation.R
. Here you write a short description of your dataset, which will be shown in the documentation. See examples from the other datasets. Again, put this in the correct place alphabetically. -
Use
devtools::document()
in the console. -
Push changes to GitHub.
-
Reinstall the package on your machine using
devtools::install_github('codeclan/CodeClanData')