Skip to content

Instantly share code, notes, and snippets.

@JoFrhwld
Created September 23, 2022 20:23
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 JoFrhwld/394c6fb204004b870f85022eadbcecd6 to your computer and use it in GitHub Desktop.
Save JoFrhwld/394c6fb204004b870f85022eadbcecd6 to your computer and use it in GitHub Desktop.
#!/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
@JoFrhwld
Copy link
Author

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

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