#' ruf
#' @name read_append_filename_csv
#' @param filename class: string
#' @param verbose class: boolean
#' @import tidyverse
#' @examples
#' read_append_filename_csv(filename, verbose=F)
#' @export
read_append_filename_csv <- function(filename, verbose=F) {
if(file.info(filename)$size > 0) {
if(verbose){print("====START====");print(filename)}
temp_df <- read_csv(filename, col_types = cols())
temp_df$filename <- filename
if(verbose){print("=====END=====")}
} else {
if(verbose){print("====START====");print(filename)}
if(verbose){print("=====END=====")}
}
return(temp_df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.