R/data_package_shiny_handler.R
data_package_shiny_handler.Rd
A data_package_* handler for the shiny app
data_package_shiny_handler(data.pkg.doi = NA, current.data = NULL, download.dir = NULL)
data.pkg.doi | The doi of the package being downloaded. |
---|---|
current.data | Current data loaded in the app, if any. |
download.dir | The download directory. |
Returns a list of tibbles containing data and metadata for a given data package. Attributes include information about the doi and download folder, where available.
This function is largely meant to interact with the main Shiny app used in this package.
If no inputs are provided, the function returns a default data set. The name of the tibble in this dataset is "Example_dataset.csv". The doi attribute is set to NA. The folder attribute is also set to NA.
# NOT RUN { #Load in the example data data_package <- data_package_shiny_handler() #Load an actual data set doi_string <- "doi:10.6073/pasta/dd7955138eb963a847b861242390a48c" data_package <- data_package_shiny_handler(data.pkg.doi = doi_string)) # }