You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a NEWS.md file to track changes to the package.
Updated the package functions to be able to work with new case studies.
The package functions implement an error check that verifies if the case study repository name input by the user is a valid repository name. The functions do this by checking the input against a list of valid case study repository names. If the input does not match one of the names in this list, the function returns an error message that the casestudy input was invalid.
Previously, this list was defined statically and created using the combine c() function on several character strings containing each case study repository name. This would require an update to the list in each package function every time a new case study is created.
In v1.1.0, the list is now created by scraping the list of repository names from github.com/opencasestudies using the gh package, a new dependency for the package. Now, the functions will work with any repository from the Open Case Studies GitHub. However, using the data functions with repositories that do not have a /data/ sub-folder won't do anything but make an empty directory. This will allow the package functions to work with any future case study, without requiring a package update.