From 20ba415761ecd6fa157533924b4affd3dd0bd010 Mon Sep 17 00:00:00 2001 From: Peder <pbac@dtu.dk> Date: Thu, 5 May 2022 19:13:40 +0200 Subject: [PATCH] Submitted 1.0.1 --- cran-comments.md | 2 +- inst/CITATION | 2 +- make.R | 17 ++++++++++------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cran-comments.md b/cran-comments.md index 913b232..e1f26bf 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -2,7 +2,7 @@ # v1.0.1 We have changed a few minor things: -- Added better checks and error messages for input data +- Added better checks and error messages for data - Small bug fixes #---------------------------------------------------------------- diff --git a/inst/CITATION b/inst/CITATION index df780c2..7299dad 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -15,7 +15,7 @@ citEntry( entry = "Manual", title = "{{onlineforecast}: Forecast Modelling for Online Applications}", author = "Peder Bacher and Hjörleifur G. Bergsteinsson", - year = "2021", + year = "2022", note = "R package version 1.0.1", url = "https://onlineforecasting.org", textVersion = "" diff --git a/make.R b/make.R index 2a7e3c5..ea40b4e 100644 --- a/make.R +++ b/make.R @@ -60,7 +60,6 @@ run_examples() # The version (move the value from DESCRIPTION to other places, so only update it in DESCRIPTION) txt <- scan("DESCRIPTION", character()) (ver <- txt[which(txt == "Version:") + 1]) - # Update CITATION (change the year manually) txt2 <- scan("inst/CITATION", character(), sep="#", quote="") txt2[grep("R package version",txt2)] <- paste0(' note = "R package version ',ver,'",') @@ -104,18 +103,22 @@ unlink("onlineforecast.Rcheck/", recursive=TRUE) #----------------- -# WINDOWS: +# Use Rcpp and RcppArmadillo (2022-05): Some problem (segmentation fault) occured, something (Rostream...) was added to the 'src/RcppExports.cpp' file, however in some weird way it disappeared again! +# +# Update if new functions are added to the src folder +#Rcpp::compileAttributes() + +# New package from scratch, see what is generated and correct that in the current package +#library(RcppArmadillo) +#RcppArmadillo.package.skeleton("onlineforecast", path = "~/tmp/") + +# on WINDOWS: # Install rtools # Run in R: #writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron") # Restart R and check if rtools are found: #Sys.which("make") -# Must have Makevars and Makevars.win in "src" -# Make the two files, find them and copy into "src" -#library("RcppArmadillo") -#RcppArmadillo.package.skeleton("tmp-pkg") - #----------------- # Run another version of R (a linux in podman) -- GitLab