From f3696588fd783357f060671a5d30864a79b1ea84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20G=C3=A9nin?= Date: Fri, 6 Sep 2024 15:01:56 +0200 Subject: [PATCH] Fix some NOTEs on win-builder --- DESCRIPTION | 26 +++++++++++++++++++++++--- R/display_matrix.R | 2 +- R/indictest.R | 2 +- man/display_matrix.Rd | 2 +- man/indictest.Rd | 2 +- 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ad605839..629ea70c 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,11 +2,31 @@ Package: spatialwarnings Type: Package Title: Spatial Early Warning Signals of Ecosystem Degradation Version: 3.1.0 -Author: Alain Danet, Alexandre Genin, Vishwesha Guttal, Sonia Kefi, - Sabiha Majumder, Sumithra Sankaran, Florian Schneider +Authors@R: c(person(given = "Alain", + family = "Danet", + role = "aut"), + person(given = "Alexandre", + family = "Genin", + role = c("aut", "cre"), + email = "alexandre.genin@sete.cnrs.fr"), + person(given = "Vishwesha", + family = "Guttal", + role = "aut"), + person(given = "Sonia", + family = "Kefi", + role = "aut"), + person(given = "Sabiha", + family = "Majumder", + role = "aut"), + person(given = "Sumithra", + family = "Sankaran", + role = "aut"), + person(given = "Florian", + family = "Schneider", + role = "aut")) License: MIT + file LICENSE Maintainer: Alexandre Genin -Description: Tools to compute and assess significance of early-warnings signals (EWS) of ecosystem degradation on raster data sets. EWS are metrics derived from the observed spatial structure of an ecosystem -- e.g. spatial autocorrelation -- that increase before an ecosystem undergoes a non-linear transition (Genin et al. (2018) ). +Description: Tools to compute and assess significance of early-warnings signals (EWS) of ecosystem degradation on raster data sets. EWS are spatial metrics derived from raster data -- e.g. spatial autocorrelation -- that increase before an ecosystem undergoes a non-linear transition (Genin et al. (2018) ). URL: https://github.com/spatial-ews/spatialwarnings BugReports: https://github.com/spatial-ews/spatialwarnings/issues Depends: R (>= 3.3.0), future diff --git a/R/display_matrix.R b/R/display_matrix.R index cfdef0c0..64dbe9a0 100644 --- a/R/display_matrix.R +++ b/R/display_matrix.R @@ -11,7 +11,7 @@ #' \code{*_sews} functions or \code{indictest()} #' #' @param palette A color palette to use in the plot. It can be any color -#' palette understood by \link{scale_fill_brewer}. +#' palette understood by \link[ggplot2]{scale_fill_brewer}. #' #' @param along A vector of values used in facet headers. If \code{object} is #' a matrix, this is ignored. diff --git a/R/indictest.R b/R/indictest.R index 7e99b500..896c3d12 100644 --- a/R/indictest.R +++ b/R/indictest.R @@ -44,7 +44,7 @@ #' a generalized linear model of the form `y ~ 1` (where y represents the #' values of the matrix) is fitted, then values are drawn from this model. If #' \code{null_method} is set to "smooth", then a smooth surface is fitted -#' based on a generalized additive model (using \code{\link[=mgcv]{gam}}) to +#' based on a generalized additive model (using \code{\link[mgcv]{gam}}) to #' the matrix, then values are drawn from this model. When using the #' "intercept" or "smooth" null models, it is important to make sure the #' model 'family' corresponds to the type of values present in the matrix. By diff --git a/man/display_matrix.Rd b/man/display_matrix.Rd index e4a6815e..33db7ca3 100644 --- a/man/display_matrix.Rd +++ b/man/display_matrix.Rd @@ -11,7 +11,7 @@ display_matrix(object, palette = "RdYlBu", along = NULL, ...) \code{*_sews} functions or \code{indictest()}} \item{palette}{A color palette to use in the plot. It can be any color -palette understood by \link{scale_fill_brewer}.} +palette understood by \link[ggplot2]{scale_fill_brewer}.} \item{along}{A vector of values used in facet headers. If \code{object} is a matrix, this is ignored.} diff --git a/man/indictest.Rd b/man/indictest.Rd index 435c5a31..204d44b9 100755 --- a/man/indictest.Rd +++ b/man/indictest.Rd @@ -45,7 +45,7 @@ Several methods are available to produce the set of null matrices. If a generalized linear model of the form `y ~ 1` (where y represents the values of the matrix) is fitted, then values are drawn from this model. If \code{null_method} is set to "smooth", then a smooth surface is fitted - based on a generalized additive model (using \code{\link[=mgcv]{gam}}) to + based on a generalized additive model (using \code{\link[mgcv]{gam}}) to the matrix, then values are drawn from this model. When using the "intercept" or "smooth" null models, it is important to make sure the model 'family' corresponds to the type of values present in the matrix. By