if (FALSE) { # interactive()
# --- Set up example source files ---- ####
path_base <- paste0(tempdir(), "/", "main", "/")
path_sub <- paste0(tempdir(), "/", "sub", "/")
dir.create(path_base)
dir.create(path_sub)
create_ex_main_txt(path_base)
create_ex_sub_txt(path_sub)
# ---- Running tb_vigibase
tb_vigibase(path_base = path_base,
path_sub = path_sub)
# Clear temporary files when you're done
unlink(path_base, recursive = TRUE)
unlink(path_sub, recursive = TRUE)
}
Run the code above in your browser using DataLab