From: Benjamin Auder Date: Fri, 14 Apr 2017 22:39:05 +0000 (+0200) Subject: fix package X-Git-Url: https://git.auder.net/doc/html/css/current/scripts/pieces/config.php?a=commitdiff_plain;h=4e821712ee4349b08a0ab3f6bcb35a00342ddef4;p=talweg.git fix package --- diff --git a/pkg/R/Data.R b/pkg/R/Data.R index c2222e1..33db5c9 100644 --- a/pkg/R/Data.R +++ b/pkg/R/Data.R @@ -9,7 +9,7 @@ #' \code{getTime()} below. Each cell .data[[i]] is itself a list containing five slots, #' as described in the 'field' section. #' -#' @usage Data$new() +#' @usage # Data$new() #' #' @field .data[[i]] List of #' \itemize{ diff --git a/pkg/R/F_Average.R b/pkg/R/F_Average.R index 72a79f0..d0b40b4 100644 --- a/pkg/R/F_Average.R +++ b/pkg/R/F_Average.R @@ -7,7 +7,7 @@ #' averaged to provide a smooth prediction. This forecast will most of the time be wrong, #' but will also look plausible enough. #' -#' @usage AverageForecaster$new(pjump) +#' @usage # AverageForecaster$new(pjump) #' #' @docType class #' @format R6 class, inherits Forecaster diff --git a/pkg/R/F_Neighbors.R b/pkg/R/F_Neighbors.R index 0003e08..1437442 100644 --- a/pkg/R/F_Neighbors.R +++ b/pkg/R/F_Neighbors.R @@ -28,7 +28,7 @@ #' obtain the final prediction. #' } #' -#' @usage NeighborsForecaster$new(pjump) +#' @usage # NeighborsForecaster$new(pjump) #' #' @docType class #' @format R6 class, inherits Forecaster diff --git a/pkg/R/F_Persistence.R b/pkg/R/F_Persistence.R index a5a95d0..dde8612 100644 --- a/pkg/R/F_Persistence.R +++ b/pkg/R/F_Persistence.R @@ -8,7 +8,7 @@ #' If the last similar day has missing values, the next one is searched, and so on until #' one full serie is found (if no one is found, NA is returned). #' -#' @usage PersistenceForecaster$new(pjump) +#' @usage # PersistenceForecaster$new(pjump) #' #' @docType class #' @format R6 class, inherits Forecaster diff --git a/pkg/R/F_Zero.R b/pkg/R/F_Zero.R index d553807..56bb4a5 100644 --- a/pkg/R/F_Zero.R +++ b/pkg/R/F_Zero.R @@ -3,7 +3,7 @@ #' Flat prediction: always forecast a serie of zeros. #' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class). #' -#' @usage ZeroForecaster$new(pjump) +#' @usage # ZeroForecaster$new(pjump) #' #' @docType class #' @format R6 class, inherits Forecaster diff --git a/pkg/R/Forecast.R b/pkg/R/Forecast.R index 2bc77c6..323ebfb 100644 --- a/pkg/R/Forecast.R +++ b/pkg/R/Forecast.R @@ -9,7 +9,7 @@ #' Each cell .pred[[i]] is itself a list containing three slots, as described in the #' 'field' section. #' -#' @usage Forecast$new(dates) +#' @usage # Forecast$new(dates) #' #' @field .pred List with #' \itemize{ diff --git a/pkg/R/Forecaster.R b/pkg/R/Forecaster.R index bb32a5e..cefa1ea 100644 --- a/pkg/R/Forecaster.R +++ b/pkg/R/Forecaster.R @@ -9,7 +9,7 @@ #' serie, and then calls the "jump prediction" function -- see "field" section -- to #' adjust it based on the last observed values. #' -#' @usage Forecaster$new(pjump) #warning: predictShape() is unimplemented +#' @usage # Forecaster$new(pjump) #warning: predictShape() is unimplemented #' #' @field .params List of computed parameters (if applicable). #' @field .pjump Function: how to predict the jump at day interface? The arguments of diff --git a/pkg/tests/testthat.R b/pkg/tests/testthat.R index e9572c7..230f9ac 100644 --- a/pkg/tests/testthat.R +++ b/pkg/tests/testthat.R @@ -1,6 +1,6 @@ library(testthat) -library(devtools); load_all("..") #because some non-exported functions +library(devtools); load_all("talweg") #because some non-exported functions #library(talweg) test_check("talweg")