Skip to content

Commit

Permalink
Start workflowr project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludvig Larsson committed Oct 31, 2019
0 parents commit f3d1542
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## This makes sure that R loads the workflowr package
## automatically, everytime the project is loaded
if (requireNamespace("workflowr", quietly = TRUE)) {
message("Loading .Rprofile for the current workflowr project")
library("workflowr")
} else {
message("workflowr package not installed, please run install.packages(\"workflowr\") to use the workflowr functions")
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
.Rapp.history
.DS_Store
analysis/figure
analysis/*png
analysis/*html
analysis/*_cache
analysis/site_libs
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# myproject

A [workflowr][] project.

[workflowr]: https://github.com/jdblischak/workflowr
8 changes: 8 additions & 0 deletions _workflowr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# workflowr options
# Version 1.3.0

# The seed to use for random number generation. See ?set.seed for details.
seed: 20191031
# The working directory to build the R Markdown files. The path is relative to
# _workflowr.yml. See ?rmarkdown::render for details.
knit_root_dir: "."
17 changes: 17 additions & 0 deletions analysis/_site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "myproject"
output_dir: ../docs
navbar:
title: "myproject"
left:
- text: Home
href: index.html
- text: About
href: about.html
- text: License
href: license.html
output:
workflowr::wflow_html:
toc: yes
toc_float: yes
theme: cosmo
highlight: textmate
10 changes: 10 additions & 0 deletions analysis/about.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "About"
output:
workflowr::wflow_html:
toc: false
editor_options:
chunk_output_type: console
---

Describe your project.
11 changes: 11 additions & 0 deletions analysis/index.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "Home"
site: workflowr::wflow_site
output:
workflowr::wflow_html:
toc: false
editor_options:
chunk_output_type: console
---

Welcome to my research website.
21 changes: 21 additions & 0 deletions analysis/license.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "License"
output:
workflowr::wflow_html:
toc: false
editor_options:
chunk_output_type: console
---

What license are you using for your code? See [choosealicense.com][choose] for
help deciding. It's a convention to save a file `LICENSE` in the root of your
Git repo that contains the license text.

What license are you using for the written content on your site? It is
traditional to choose a [Creative Commons][cc] license for this type of content.

[choose]: http://choosealicense.com/
[cc]: https://creativecommons.org/choose/

How should others cite your work? It's a convention to save a file `CITATION`
in the root of your Git repo that contains the citation information.
3 changes: 3 additions & 0 deletions code/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code

Save command-line scripts and shared R code here.
3 changes: 3 additions & 0 deletions data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Data

Save raw data files here.
Empty file added docs/.nojekyll
Empty file.
16 changes: 16 additions & 0 deletions myproject.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Version: 1.0

RestoreWorkspace: No
SaveWorkspace: No
AlwaysSaveHistory: Yes

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes
3 changes: 3 additions & 0 deletions output/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Output

Save processed data files here.

0 comments on commit f3d1542

Please sign in to comment.