file.check <- function(file.path) {
if (!(file.access(file.path, 0) == 0)) {
stop("File '",file.path,"' does not exist.", call. = FALSE)
}
if (!(file.access(file.path, 4) == 0)) {
stop("File '",file.path,"' does not have read permission.", call. = FALSE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.