Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Last active November 3, 2019 15:07
Show Gist options
  • Save andrewheiss/ede86866d961f3c461179a0b5e63d22f to your computer and use it in GitHub Desktop.
Save andrewheiss/ede86866d961f3c461179a0b5e63d22f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cat << EOF > ./$1.Rproj
Version: 1.0
RestoreWorkspace: No
SaveWorkspace: No
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: XeLaTeX
AutoAppendNewline: Yes
EOF
@andrewheiss
Copy link
Author

Put somewhere in your $PATH (like ~/bin), make executable with chmod u+x, and run with rproj name-of-project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment