From eadf2853ffc1b8276f9821af4995e3a142f39352 Mon Sep 17 00:00:00 2001 From: PietrH Date: Fri, 28 Jun 2024 15:08:24 +0200 Subject: [PATCH] Fix typos / spelling --- R/apply_gam.R | 4 ++-- R/climate_match.R | 2 +- R/gbif_has_distribution.R | 2 +- R/gbif_verify_keys.R | 2 +- R/pathways_cbd.R | 2 +- R/update_download_list.R | 2 +- man/apply_gam.Rd | 4 ++-- man/climate_match.Rd | 2 +- man/gbif_has_distribution.Rd | 2 +- man/gbif_verify_keys.Rd | 2 +- man/pathways_cbd.Rd | 2 +- man/update_download_list.Rd | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/R/apply_gam.R b/R/apply_gam.R index 51fa9a14..df59f83d 100644 --- a/R/apply_gam.R +++ b/R/apply_gam.R @@ -33,7 +33,7 @@ #' @param x_label character. x-axis label of output plot. Default: `"year"`. #' @param y_label character. y-axis label of output plot. Default: `"number of #' observations"`. -#' @param saveplot logical. If `TRUE` the plots are authomatically saved. +#' @param saveplot logical. If `TRUE` the plots are automatically saved. #' Default: `FALSE`. #' @param dir_name character. Path of directory where saving plots. If path #' doesn't exists, directory will be created. Example: "./output/graphs/". If @@ -83,7 +83,7 @@ #' #' \item `first_derivative`: df. Data.frame with details of first derivatives. #' It contains the following columns: -#' - `smooth`: smoooth identifier. Example: `s(year)`. +#' - `smooth`: smooth identifier. Example: `s(year)`. #' - `derivative`: numeric. Value of first derivative. #' - `se`: numeric. Standard error of `derivative`. #' - `crit`: numeric. Critical value required such that diff --git a/R/climate_match.R b/R/climate_match.R index e3981ad2..36516063 100644 --- a/R/climate_match.R +++ b/R/climate_match.R @@ -37,7 +37,7 @@ #' zones in the target nation or region #' - `spatial` a sf object containing the observations used #' in the analysis -#' - `current_map` a leaflet object displaying the degree of wordlwide +#' - `current_map` a leaflet object displaying the degree of worldwide #' climate match with the climate from 1980 till 2016 #' - `future_maps` a list of leaflet objects for each future climate #' scenario, displaying the degree of climate match diff --git a/R/gbif_has_distribution.R b/R/gbif_has_distribution.R index c062ef3a..9b05a22d 100644 --- a/R/gbif_has_distribution.R +++ b/R/gbif_has_distribution.R @@ -7,7 +7,7 @@ #' @param taxon_key (single numeric or character) a single taxon key. #' @param ... one or more GBIF distribution properties and related values. #' Up to now it supports the following properties: -#' country (and its synoynym: countryCode), status (and its synonym: +#' country (and its synonym: countryCode), status (and its synonym: #' occurrenceStatus) and establishmentMeans. #' @return a logical, TRUE or FALSE. #' @export diff --git a/R/gbif_verify_keys.R b/R/gbif_verify_keys.R index 77461656..6f0ee792 100644 --- a/R/gbif_verify_keys.R +++ b/R/gbif_verify_keys.R @@ -9,7 +9,7 @@ #' That means that adding a key at the end of the URL #' https://www.gbif.org/species/ returns a GBIF page related to a taxa of the #' GBIF Backbone.)} -#' \item{\code{keys} are synonyms of other taxa (taxonomicStauts neither +#' \item{\code{keys} are synonyms of other taxa (taxonomicStatus neither #' \code{ACCEPTED} nor \code{DOUBTFUL}).} #' }. #' @param keys (character or numeric) a vector, a list, or a data.frame diff --git a/R/pathways_cbd.R b/R/pathways_cbd.R index dd00e8af..99858634 100644 --- a/R/pathways_cbd.R +++ b/R/pathways_cbd.R @@ -1,4 +1,4 @@ -#' Pathways of introdcution as defined by CBD +#' Pathways of introduction as defined by CBD #' #' Function to get all CBD pathays of introdution at level 1 (`pathway_level1`) #' and level 2 (`pathway_level2`). Added pathway `unknown` at level 1 and level diff --git a/R/update_download_list.R b/R/update_download_list.R index 50ab6cd4..83148f97 100644 --- a/R/update_download_list.R +++ b/R/update_download_list.R @@ -2,7 +2,7 @@ #' #' This function opens a (tab-separated) text file containing all occurrence #' downloads from GBIF and updates the status of all downloads with status -#' `RUNNING` or `PREPARING`. If the specifid download is not present it will be add. +#' `RUNNING` or `PREPARING`. If the specified download is not present it will be add. #' #' If a download key is passed which is not present in the file it will be added #' as a new line. diff --git a/man/apply_gam.Rd b/man/apply_gam.Rd index 80a328f2..961de90b 100644 --- a/man/apply_gam.Rd +++ b/man/apply_gam.Rd @@ -66,7 +66,7 @@ and filenames (if \code{saveplot = TRUE}). The title is always composed of: \item{y_label}{character. y-axis label of output plot. Default: \code{"number of observations"}.} -\item{saveplot}{logical. If \code{TRUE} the plots are authomatically saved. +\item{saveplot}{logical. If \code{TRUE} the plots are automatically saved. Default: \code{FALSE}.} \item{dir_name}{character. Path of directory where saving plots. If path @@ -124,7 +124,7 @@ derivative, if positive. It represents the lower guaranteed growth. \item \code{first_derivative}: df. Data.frame with details of first derivatives. It contains the following columns: \itemize{ -\item \code{smooth}: smoooth identifier. Example: \code{s(year)}. +\item \code{smooth}: smooth identifier. Example: \code{s(year)}. \item \code{derivative}: numeric. Value of first derivative. \item \code{se}: numeric. Standard error of \code{derivative}. \item \code{crit}: numeric. Critical value required such that diff --git a/man/climate_match.Rd b/man/climate_match.Rd index e44cca30..56d68bb1 100644 --- a/man/climate_match.Rd +++ b/man/climate_match.Rd @@ -61,7 +61,7 @@ climate_limit thresholds have been applied zones in the target nation or region \item \code{spatial} a sf object containing the observations used in the analysis -\item \code{current_map} a leaflet object displaying the degree of wordlwide +\item \code{current_map} a leaflet object displaying the degree of worldwide climate match with the climate from 1980 till 2016 \item \code{future_maps} a list of leaflet objects for each future climate scenario, displaying the degree of climate match diff --git a/man/gbif_has_distribution.Rd b/man/gbif_has_distribution.Rd index a737c09e..048d67af 100644 --- a/man/gbif_has_distribution.Rd +++ b/man/gbif_has_distribution.Rd @@ -11,7 +11,7 @@ gbif_has_distribution(taxon_key, ...) \item{...}{one or more GBIF distribution properties and related values. Up to now it supports the following properties: -country (and its synoynym: countryCode), status (and its synonym: +country (and its synonym: countryCode), status (and its synonym: occurrenceStatus) and establishmentMeans.} } \value{ diff --git a/man/gbif_verify_keys.Rd b/man/gbif_verify_keys.Rd index 62c72b4c..34ec586a 100644 --- a/man/gbif_verify_keys.Rd +++ b/man/gbif_verify_keys.Rd @@ -38,7 +38,7 @@ related to a taxa.} That means that adding a key at the end of the URL https://www.gbif.org/species/ returns a GBIF page related to a taxa of the GBIF Backbone.)} -\item{\code{keys} are synonyms of other taxa (taxonomicStauts neither +\item{\code{keys} are synonyms of other taxa (taxonomicStatus neither \code{ACCEPTED} nor \code{DOUBTFUL}).} }. } diff --git a/man/pathways_cbd.Rd b/man/pathways_cbd.Rd index 225d0a93..02f8dd44 100644 --- a/man/pathways_cbd.Rd +++ b/man/pathways_cbd.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/pathways_cbd.R \name{pathways_cbd} \alias{pathways_cbd} -\title{Pathways of introdcution as defined by CBD} +\title{Pathways of introduction as defined by CBD} \usage{ pathways_cbd() } diff --git a/man/update_download_list.Rd b/man/update_download_list.Rd index 6188a81a..39c918b1 100644 --- a/man/update_download_list.Rd +++ b/man/update_download_list.Rd @@ -42,7 +42,7 @@ message with the performed updates \description{ This function opens a (tab-separated) text file containing all occurrence downloads from GBIF and updates the status of all downloads with status -\code{RUNNING} or \code{PREPARING}. If the specifid download is not present it will be add. +\code{RUNNING} or \code{PREPARING}. If the specified download is not present it will be add. } \details{ If a download key is passed which is not present in the file it will be added