diff --git a/NEWS.md b/NEWS.md index accbb3d..3a001ab 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# quanteda.textstats 0.97 + +* Fixes Rd link issues and other issues causing warnings under the new and improved CRAN checks. + # quanteda.textstats 0.96 * Fixes for C++ header compatibility for existing **quanteda** 3.x and the forthcoming 4.0 version. diff --git a/R/nsyllable-methods.R b/R/nsyllable-methods.R index 13cf4d4..2f46363 100644 --- a/R/nsyllable-methods.R +++ b/R/nsyllable-methods.R @@ -1,6 +1,6 @@ #' nsyllable methods for tokens #' -#' Extends `nsyllable()` methods for [quanteda.textstats::tokens] objects. +#' Extends `nsyllable()` methods for [tokens][quanteda::tokens] objects. #' @inheritParams nsyllable::nsyllable #' @examples #' \dontshow{ diff --git a/R/textstat_collocations.R b/R/textstat_collocations.R index 32c6c7e..71029f0 100644 --- a/R/textstat_collocations.R +++ b/R/textstat_collocations.R @@ -25,7 +25,7 @@ #' (default is 0.5) #' @param tolower logical; if `TRUE`, form collocations as lower-cased #' combinations -#' @param ... additional arguments passed to [tokens()] +#' @param ... additional arguments passed to [tokens()][quanteda::tokens] #' @references Blaheta, D. & Johnson, M. (2001). [Unsupervised learning of #' multi-word #' verbs](http://web.science.mq.edu.au/~mjohnson/papers/2001/dpb-colloc01.pdf). diff --git a/R/textstat_simil.R b/R/textstat_simil.R index ddb2f0c..aec74d6 100644 --- a/R/textstat_simil.R +++ b/R/textstat_simil.R @@ -182,11 +182,11 @@ setMethod("tail", signature(x = "textstat_proxy"), function(x, n = 6L, ...) { #' Similarity and distance computation between documents or features #' #' These functions compute matrixes of distances and similarities between -#' documents or features from a [dfm()] and return a matrix of -#' similarities or distances in a sparse format. These methods are fast -#' and robust because they operate directly on the sparse [dfm][quanteda::dfm] objects. -#' The output can easily be coerced to an ordinary matrix, a data.frame of -#' pairwise comparisons, or a [dist][stats::dist] format. +#' documents or features from a [dfm][quanteda::dfm] and return a matrix of +#' similarities or distances in a sparse format. These methods are fast and +#' robust because they operate directly on the sparse [dfm][quanteda::dfm] +#' objects. The output can easily be coerced to an ordinary matrix, a data.frame +#' of pairwise comparisons, or a [dist][stats::dist] format. #' @param x,y a [dfm][quanteda::dfm] objects; `y` is an optional target matrix #' matching `x` in the margin on which the similarity or distance will be #' computed. diff --git a/R/textstat_summary.R b/R/textstat_summary.R index 6f210fb..782744c 100644 --- a/R/textstat_summary.R +++ b/R/textstat_summary.R @@ -21,7 +21,7 @@ #' \item emojis = number of emojis (`^\p{Emoji_Presentation}+$`) #' } #' @param x corpus to be summarized -#' @param ... additional arguments passed through to [dfm()] +#' @param ... additional arguments passed through to [dfm()][quanteda::dfm] #' @export #' @keywords textstat #' @examples diff --git a/README.md b/README.md index e812b3c..a762f31 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![CRAN Version](https://www.r-pkg.org/badges/version/quanteda.textstats)](https://CRAN.R-project.org/package=quanteda.textstats) -[![](https://img.shields.io/badge/devel%20version-0.97-royalblue.svg)](https://github.com/quanteda/quanteda.textstats) +[![](https://img.shields.io/badge/devel%20version-0.97.1-royalblue.svg)](https://github.com/quanteda/quanteda.textstats) [![Downloads](https://cranlogs.r-pkg.org/badges/quanteda.textstats)](https://CRAN.R-project.org/package=quanteda.textstats) [![Total Downloads](https://cranlogs.r-pkg.org/badges/grand-total/quanteda.textstats?color=orange)](https://CRAN.R-project.org/package=quanteda.textstats) diff --git a/cran-comments.md b/cran-comments.md index d4a3178..9d7f69d 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,9 +1,11 @@ -# New/Re Submission notes +# Submission notes Purpose: * To fix Rd link issues. +Note that this + ## Test environments * local macOS 14.4.1, R 4.4.1 diff --git a/man/nsyllable.tokens.Rd b/man/nsyllable.tokens.Rd index c67c781..854c8ec 100644 --- a/man/nsyllable.tokens.Rd +++ b/man/nsyllable.tokens.Rd @@ -30,7 +30,7 @@ dictionary is supplied, this will override the \code{language} argument.} syllable count vector} } \description{ -Extends \code{nsyllable()} methods for \link{tokens} objects. +Extends \code{nsyllable()} methods for \link[quanteda:tokens]{tokens} objects. } \examples{ \dontshow{ diff --git a/man/textstat_collocations.Rd b/man/textstat_collocations.Rd index de26709..d317464 100644 --- a/man/textstat_collocations.Rd +++ b/man/textstat_collocations.Rd @@ -38,7 +38,7 @@ scored} \item{tolower}{logical; if \code{TRUE}, form collocations as lower-cased combinations} -\item{...}{additional arguments passed to \code{\link[=tokens]{tokens()}}} +\item{...}{additional arguments passed to \link[quanteda:tokens]{tokens()}} } \value{ \code{textstat_collocations} returns a data.frame of collocations and diff --git a/man/textstat_simil.Rd b/man/textstat_simil.Rd index 658b3b5..4fdce5c 100644 --- a/man/textstat_simil.Rd +++ b/man/textstat_simil.Rd @@ -53,11 +53,11 @@ unless \code{y} is specified. } \description{ These functions compute matrixes of distances and similarities between -documents or features from a \code{\link[=dfm]{dfm()}} and return a matrix of -similarities or distances in a sparse format. These methods are fast -and robust because they operate directly on the sparse \link[quanteda:dfm]{dfm} objects. -The output can easily be coerced to an ordinary matrix, a data.frame of -pairwise comparisons, or a \link[stats:dist]{dist} format. +documents or features from a \link[quanteda:dfm]{dfm} and return a matrix of +similarities or distances in a sparse format. These methods are fast and +robust because they operate directly on the sparse \link[quanteda:dfm]{dfm} +objects. The output can easily be coerced to an ordinary matrix, a data.frame +of pairwise comparisons, or a \link[stats:dist]{dist} format. } \details{ \code{textstat_simil} options are: \code{"correlation"} (default), diff --git a/man/textstat_summary.Rd b/man/textstat_summary.Rd index 1a6eb29..8165f81 100644 --- a/man/textstat_summary.Rd +++ b/man/textstat_summary.Rd @@ -9,7 +9,7 @@ textstat_summary(x, ...) \arguments{ \item{x}{corpus to be summarized} -\item{...}{additional arguments passed through to \code{\link[=dfm]{dfm()}}} +\item{...}{additional arguments passed through to \link[quanteda:dfm]{dfm()}} } \description{ Count syntactic and lexical features of documents such as tokens, types,