Skip to content

Commit

Permalink
Fix anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Jun 22, 2024
1 parent 3a81842 commit dba1d6e
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 24 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.9.4
Date: 2024-03-05 20:08:55 UTC
SHA: b37e486d06a918ee94396145561ed41d61cd56c6
Version: 0.9.5
Date: 2024-06-21 21:43:10 UTC
SHA: 3a818425e8a7aedd8a407710b5d85bcad33fc9e8
4 changes: 2 additions & 2 deletions R/geom_split_violin.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#' Trang Q. Nguyen for adding the nudge parameter.
#'
#' @inheritParams ggplot2::geom_violin
#' @param stat Use to override the default connection between [geom_violin()]
#' and [stat_ydensity()].
#' @param stat Use to override the default connection between [ggplot2::geom_violin()]
#' and [ggplot2::stat_ydensity()].
#' @param nudge Add space between the half-violin and the middle of the space
#' allotted to a given factor on the x-axis.
#' @returns a [`ggplot2::layer`] object
Expand Down
4 changes: 2 additions & 2 deletions R/maxent.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' MaxEnt model
#'
#' [maxent] defines the MaxEnt model as used in Species
#' `maxent` defines the MaxEnt model as used in Species
#' Distribution Models.
#' A good guide to how options of a MaxEnt model work can be found in
#' https://onlinelibrary.wiley.com/doi/full/10.1111/j.1600-0587.2013.07872.x
Expand All @@ -12,7 +12,7 @@
#' @param feature_classes character, continuous feature classes desired, either
#' "default" or any subset of "lqpht" (for example, "lh")
#' @param regularization_multiplier numeric, a constant to adjust regularization
#' @returns a [`model_spec`] for a `maxent` model
#' @returns a [`parsnip::model_spec`] for a `maxent` model
#' @examples
#' \donttest{
#' # format the data
Expand Down
4 changes: 2 additions & 2 deletions R/predict_raster.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#' Make predictions for a whole raster
#'
#' This function allows to use a raster as data to make predictions from a
#' variety of [tidymodels] objects, such as [`simple_ensemble`] or `stacks::linear_stack`
#' @param object the [`tidymodels`] object of interest
#' variety of `tidymodels` objects, such as [`simple_ensemble`] or [`stacks::stacks`]
#' @param object the `tidymodels` object of interest
#' @param raster the [`terra::SpatRaster`] with the input data. It has to include
#' levels with the same names as the variables used in `object`
#' @param ... parameters to be passed to the standard `predict()` function
Expand Down
2 changes: 1 addition & 1 deletion R/prob_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' `tidysdm` provides specialised metrics for SDMs, which have their own
#' help pages([boyce_cont()], [kap_max()], and [tss_max()]). Additionally, it also
#' provides methods to handle [sf::sf] objects for the following
#' standard [yardstick] metrics:
#' standard `yardstick` metrics:
#'
#' Note that `roc_aunp` and `roc_aunu` are multiclass metrics, and as such are
#' are not relevant for SDMs (which work on a binary response). They are included
Expand Down
2 changes: 1 addition & 1 deletion R/recipe_sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' @param x An [sf::sf] data frame.
#' @param ... parameters to be passed to [recipes::recipe()]
#' @returns An object of class `spatial_recipe`, which is a derived version of
#' [recipes::recipe] , see
#' [recipes::recipe()] , see
#' the manpage for [recipes::recipe()] for details.
#' @export
#' @import recipes
Expand Down
4 changes: 2 additions & 2 deletions R/spatial_initial_split.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#' Simple Training/Test Set Splitting for spatial data
#'
#' `spatial_initial_split` creates a single binary split of the data into a training
#' set and testing set. All strategies from the package [spatialsample] are available;
#' set and testing set. All strategies from the package `spatialsample` are available;
#' a random split from that strategy will be used to generate the initial split.
#' @param data A dataset (data.frame or tibble)
#' @param prop The proportion of data to be retained for modelling/analysis.
#' @param strategy A sampling strategy from [spatialsample]
#' @param strategy A sampling strategy from `spatialsample`
#' @param ... parameters to be passed to the `strategy`
#' @returns An `rsplit` object that can be used with the [rsample::training] and [rsample::testing]
#' functions to extract the data in each split.
Expand Down
3 changes: 2 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
This is a minor update, adding a few methods and improving the vignettes.
This is a resubmission. The previous version raised a problem of some missing package
anchors. All documentation should not include the required package anchors.

## Test environments
- R-hub linux (r-devel)
Expand Down
4 changes: 2 additions & 2 deletions man/geom_split_violin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/maxent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/predict_raster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/prob_metrics_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/recipe.sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/spatial_initial_split.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dba1d6e

Please sign in to comment.