-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcreate git.R
39 lines (31 loc) · 1.22 KB
/
create git.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##set up for github
install.packages("roxygen2")
##set working direction to create stuff
#setwd("~/Downloads")
##create the folder for everything
devtools::create("MeMoBootR")
##open that folder
##create a man folder within the folder you just made
##empty R folder gets the function files
##fix the description file
##you can open this in R - edit the information in this file to be correct (use license() to get the current license)
license()
##at the beginning of each function you add special code
#' Name of the Function
#'
#' Description of the function
#' @param several lines of this that describes the arguments so you put the argument name, then space, then describe the argument
#' @keywords
#' @export maybe leave blank
#' @examples leave this blank
#' now put in the examples here
##set your working directory to package file
#setwd("~/OneDrive - Missouri State University/RESEARCH/2 projects/MeMoBootR")
##run this thing
library(roxygen2)
roxygen2::roxygenise()
##it searches through folder looks for description
##and create the Rd files and put into man folder
##Then you put it on git hub
##then run this to update
devtools::install_github("doomlab/MeMoBootR")