-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworksheet.R
More file actions
58 lines (34 loc) · 1.03 KB
/
worksheet.R
File metadata and controls
58 lines (34 loc) · 1.03 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# core components:
# * R folder -
# - R scripts for functions, with roxygen documentation
# - R script to document data - see https://github.com/tidyverse/ggplot2/blob/master/R/data.R
#
# * DESCRIPTION file
# - version number,
# - date,
# - authors,
# - import (so dependencies can be installed when installing from CRAN)
# generate NAMESPACE and documentation
devtools::document()
# update readme
rmarkdown::render("README.Rmd")
# check package
devtools::check()
# -------
# to install from local copy
devtools::install()
# remotes::install_github("krlmlr/fledge")
fledge::update_news()
# check install from github
devtools::install_github("Faskally/rns")
# equivalent to - devtools::install_github("Faskally/rns@master")
library(rns)
?Predict.matrix.rn.smooth
# check install from github development version (on different branch, e.g. develop)
devtools::install_github("Faskally/rns@develop")
library(rns)
?Predict.matrix.rn.smooth
# when developing
devtools::load_all()
# add data ----
usethis::use_data_raw()