Skip to content

Commit

Permalink
docs: fix getCitation docs (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdt committed Jan 17, 2024
1 parent 58dd8cc commit eb87e17
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ importFrom(stats,mahalanobis)
importFrom(stats,model.frame)
importFrom(stats,weighted.mean)
importFrom(utils,capture.output)
importFrom(utils,citation)
importFrom(utils,combn)
importFrom(utils,data)
importFrom(utils,getS3method)
Expand Down
1 change: 1 addition & 0 deletions R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ setGeneric('getArgumentExclusions', function(object, ...) {
# getCitation ####
#' @export
#' @name latrend-generics
#' @importFrom utils citation
setGeneric('getCitation', function(object, ...) {
out <- standardGeneric('getCitation')

Expand Down
2 changes: 2 additions & 0 deletions R/method.R
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,11 @@ setMethod('getArgumentDefaults', 'lcMethod', function(object) {
#. getCitation ####
#' @name getCitation
#' @rdname getCitation
#' @aliases getCitation,lcMethod-method
#' @title Get citation info
#' @description Get a citation object indicating how to cite the underlying R packages used for estimating or representing the given method or model.
#' @param object The object
#' @param ... Additional arguments
#' @return A [citation] object
setMethod('getCitation', 'lcMethod', function(object, ...) {
utils::citation(package = 'base')[0]
Expand Down
1 change: 1 addition & 0 deletions R/model.R
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ setMethod('getLabel', 'lcModel', function(object, ...) {
# . getCitation ####
#' @export
#' @rdname getCitation
#' @aliases getCitation,lcModel-method
setMethod('getCitation', 'lcModel', function(object, ...) getCitation(getLcMethod(object)))


Expand Down
3 changes: 3 additions & 0 deletions man/getCitation.Rd

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

0 comments on commit eb87e17

Please sign in to comment.