Skip to content
Snippets Groups Projects
Select Git revision
  • e9bd87182af7babf15f0fafd6fab78f3e4a651d0
  • master default protected
  • feature/quantileforecast
  • develop
  • add_kseq
5 results

make.R

Blame
  • 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)
    # ----------------------------------------------------------------