Skip to content

Instantly share code, notes, and snippets.

@liangyy
Created June 29, 2019 17:14
Show Gist options
  • Save liangyy/af52c29f0083a5db86b26ff75eab513a to your computer and use it in GitHub Desktop.
Save liangyy/af52c29f0083a5db86b26ff75eab513a to your computer and use it in GitHub Desktop.
source R scripts inside a folder
sapply(list.files('path-to-folder', '*.R', full.names = T), source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment