#' read.csv with try
#'
#' @param path
#' @param skip
#' @param ...
#'
#' @return
#' @export
#'
#' @examples
read.csv0 <- function(path, skip = 0, ...) {
df <- NULL
try({
df <- read.csv(path[length(path)], skip = skip, ...)
}, silent = T)
if (is.null(df)) {
cat(sprintf('File access failed @ \n %s', basename(path)))
}
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.