Skip to content

Instantly share code, notes, and snippets.

@StuntsPT
Created December 19, 2016 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StuntsPT/0bde8dc334f931f5adf5c13b2fedaacd to your computer and use it in GitHub Desktop.
Save StuntsPT/0bde8dc334f931f5adf5c13b2fedaacd to your computer and use it in GitHub Desktop.
A cross platorm file lister for R
switch(Sys.info()[['sysname']],
Windows = {lister="dir"},
Linux = {lister="ls -1"},
Darwin = {lister="ls -1"})
system(lister)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment