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
# library() or require() only load one package at a time | |
# but... | |
Packages <- c("dplyr", "ggplot2", "rstan", "readr") | |
lapply(Packages, library, character.only = TRUE) | |
# this loads as many as you put in 'Packages'. They need to be installed first, of course. |
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
##install.packages("googlesheets") | |
# Load googlesheets package | |
library(tidyverse) | |
library(googlesheets) | |
library(randomizeR) | |
# Connect R and my google drive | |
gs_auth(new_user = TRUE) | |
# Export the sheet. |
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
#' Global Arguments | |
#' | |
#' Set the default values from a function to the global environment | |
#' | |
#' @param func the function to get arguments from | |
#' @param env the environment to out the arguments in | |
#' | |
#' @return NULL | |
#' @export | |
#' |