https://github.com/drsimonj/R-template-project
Basic template for an R Project, including folder structure and useful functions
https://github.com/drsimonj/R-template-project
Last synced: 4 months ago
JSON representation
Basic template for an R Project, including folder structure and useful functions
- Host: GitHub
- URL: https://github.com/drsimonj/R-template-project
- Owner: drsimonj
- Created: 2016-04-14T23:40:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-26T22:11:01.000Z (almost 9 years ago)
- Last Synced: 2024-12-01T01:35:15.235Z (4 months ago)
- Language: R
- Size: 88.9 KB
- Stars: 5
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - drsimonj/R-template-project - Basic template for an R Project, including folder structure and useful functions (R)
README
---
title: "README"
output: github_document
---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```## R Template Project
This project provides a template structure of folders and files for an R project.
## Folder Structure
The project comprises of three main folders in which you would store certain files.
### data/
This folder should contain data files like .csv, .xls, .spss, etc.
In this folder:
- An example data set of bird information taken from the [UCLA statistics teaching material](http://www.stat.ucla.edu/projects/datasets/).
### R/
This folder should contain R script files.
In this folder:
- Template script with the key section headers described by the [Google's R Style Guide](https://google.github.io/styleguide/Rguide.xml).
### Rmd/
This folder should contain all R markdown and associated files.
In this folder:
- **reference_docx/** which should contain any reference documents to be used by R Markdown file. This currently includes:
- A default APA-style word doc, "APA-style-01.docx"
- **bib/** which should contain bibliographies to be used by R Markdown file. This currently includes:
- An example bibliography file, "example-bib.bib"
- **img/** which should contain images to be inserted into R Markdown file. This currently imcludes:
- An image showing the output formats generated by R Markdown, "RMarkdownOutputFormats.png"
- A template R Markdown for producing APA-style word documents. For styling, this references "reference_docx/APA-style-01.docx"