-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to rocker/tidyverse:3.6.0 and modified project template
- Loading branch information
1 parent
85a589f
commit 5195ad5
Showing
9 changed files
with
112 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
certs/localhost | ||
.Rproj.user |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
# Reads raw delimited data and saves as RDS files in data folder | ||
# created 25-May-2018 by Paul Stevenson | ||
#' Reads raw delimited data and saves as RDS files in data folder | ||
#' created 25-May-2018 by Paul Stevenson | ||
#' updated 27-May-2019 by Paul Stevenson | ||
|
||
#### libraries ---- | ||
|
||
library(dplyr) | ||
library(readr) | ||
library(readstata13) | ||
|
||
#### helper functions ---- | ||
|
||
source("R/99-helper.R") | ||
|
||
#### load data ---- | ||
|
||
dat <- read_csv("data-raw/file.csv") | ||
|
||
devtools::use_data("var_name", overwrite = T) | ||
#### Data cleaning ---- | ||
|
||
|
||
#### save data ---- | ||
|
||
save(dat, file = "data/dat.RData") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
# This is the starting point for the project. load.project will load the | ||
# data and run any scripts in the munge directory. | ||
# Created by Paul Stevenson 17-May-2018 | ||
#' This is the starting point for the project. load.project will load the | ||
#' data and run any scripts in the munge directory. | ||
#' Created by Paul Stevenson 17-May-2018 | ||
#' Updated 27-May-2019 by Paul Stevenson | ||
|
||
library('repmis') | ||
#### libraries ---- | ||
|
||
LoadandCite(pkgs = c("tidyverse", "lubridate", "ProjectTemplate", "repmis", "biometrics"), | ||
file = "report/assets/bib/packages.bib") | ||
library(ProjectTemplate) | ||
library(dplyr) | ||
|
||
#### Project automation with Project Template ---- | ||
|
||
load.project(munging = TRUE, data_loading = TRUE) | ||
|
||
#### load data ---- | ||
|
||
# load("data/dat.RData") | ||
# load("cache/dat.RData") | ||
|
||
#### helper functions ---- | ||
|
||
source("R/99-helper.R") | ||
|
||
#### Data wrangling/cleaning ---- | ||
|
||
|
||
#### Analysis ---- |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
# Example preprocessing script. | ||
#' Example preprocessing script. | ||
#' Created 21-May-2019 by Paul Stevenson | ||
#' Updated 27-May-2019 by Paul Stevenson | ||
|
||
#### libraries ---- | ||
|
||
library(ProjectTemplate) | ||
library(dplyr) | ||
|
||
#### helper functions ---- | ||
|
||
source("R/99-helper.R") | ||
|
||
#### load data ---- | ||
|
||
load("data/dat.RData") | ||
|
||
#### Data wrangling ---- | ||
|
||
|
||
#### save data ---- | ||
|
||
cache("dat") |