#' Get the file details for a variable and dataset.
#'
#' Internal getter function
#'
#' @param variable one or more variable names to be downloaded
#' @param dataset string defining dataset to be downloaded (a list of possible
#' values can be obtained with [list_available_datasets()]). This function
#' will not work on custom datasets.
#' @returns the filename for that variable and dataset
get_file_for_dataset <- function(variable, dataset) {
check_available_variable(variable, dataset)
return(getOption("pastclim.dataset_list")[getOption("pastclim.dataset_list")$variable %in% variable &
getOption("pastclim.dataset_list")$dataset == dataset, ])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.