Created
September 23, 2022 20:23
-
-
Save JoFrhwld/394c6fb204004b870f85022eadbcecd6 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
x="Version: 1.0 | |
RestoreWorkspace: Default | |
SaveWorkspace: Default | |
AlwaysSaveHistory: Default | |
EnableCodeIndexing: Yes | |
UseSpacesForTab: Yes | |
NumSpacesForTab: 2 | |
Encoding: UTF-8 | |
RnwWeave: knitr | |
LaTeX: pdfLaTeX" | |
mkdir $1 | |
echo "$x" > $1/$1.Rproj | |
touch $1/README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
git clone https://gist.github.com/394c6fb204004b870f85022eadbcecd6.git mkproj cd mkproj chmod 777 mkproj.sh sudo mv mkproj.sh /usr/bin/local/mkproj rehash
Now, every
mkproj project
will spawn an RStudio project and a readme.md