#' Check if data in raw data folder is OK
#'
#' @param input raw data folder containing incubatortemp data, i.e usually is \code{some/path/incubatortemp}
#'
#' @return \code{TRUE} if ok, \code{FALSE} or \code{list} of problems if not
#' @importFrom utils read.delim
#' @export
#'
#' @examples
#' \dontrun{
#' raw_data_ok()
#' }
raw_data_ok <- function(input) {
ok <- list()
on.exit(
if (all(unlist(ok))) {
return(TRUE)
} else {
return(ok)
}
)
# ok$incubatortemp_extract <- file.exists( file.path(input, "incubatortemp", "incubatortemp_extract.yml") )
# ok$video_description <- file.exists( file.path(input, "incubatortemp", "video.description.txt") )
ok$data_present <- length(
list.files(
path = file.path( input, "incubatortemp" ),
pattern = "\\.txt",
full.names = FALSE
)
) > 0
return(ok)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.