Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
make.R 3.93 KiB
#----------------------------------------------------------------
## # These packages must be installed
## install.packages("Rcpp")
## install.packages("R6")
## install.packages("splines")
## install.packages("digest")
## # cpp matrix library
## install.packages("RcppArmadillo")
## # For develop install
## install.packages("devtools")
## install.packages("roxygen2")
## # For testing and building vignettes
## install.packages("rmarkdown")
## install.packages("R.rsp")
## install.packages("data.table")
## install.packages("plotly")
#----------------------------------------------------------------
# Go
library(devtools)
library(roxygen2)
# Load the package directly
## document()
## pack <- as.package("../onlineforecast")
## load_all(pack)
# ----------------------------------------------------------------
# Misc
#
# Add new vignette
#usethis::use_vignette("setup-data")
# ----------------------------------------------------------------
# Running tests in folder "tests/testthat/"
#
# https://kbroman.org/pkg_primer/pages/tests.html
# http://r-pkgs.had.co.nz/tests.html
#
# Initialize first time the the testing framework
#use_testthat()
# Init new test
#use_test("newtest")
# # Run all tests
#document()
#test()
# # Run the examples
#run_examples()
# # Run tests in a single file
# load_all(as.package("../onlineforecast"))
# test_file("tests/testthat/test-rls-heat-load.R")
# ----------------------------------------------------------------
# Build the package
document()
build(".", vignettes=TRUE)
# Install it
install.packages("../onlineforecast_0.9.3.tar.gz")
library(onlineforecast)
# ----------------------------------------------------------------