Last active
August 29, 2015 13:57
-
-
Save paulrougieux/9915219 to your computer and use it in GitHub Desktop.
List of link to files in 2 level directory, useable in Markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{r results='asis'} | |
for (f in list.files()){ | |
if(file.info(f)$isdir){ | |
l <- c(f, paste0(f,"/",list.files(f))) | |
cat(paste0("* [",c(f, list.files(f)),"]","(",l,")\n")) | |
} | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment