diff --git a/DESCRIPTION b/DESCRIPTION index b4cfd2e..f6ec97e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -56,5 +56,5 @@ Encoding: UTF-8 Language: en-GB LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 VignetteBuilder: knitr diff --git a/R/make_inheritance_checks.R b/R/make_inheritance_checks.R index f89372c..1212f94 100644 --- a/R/make_inheritance_checks.R +++ b/R/make_inheritance_checks.R @@ -6,7 +6,8 @@ #' @param target_classes character vector of the classes to check for. #' @param ignore_null boolean. Indicates whether to ignore arguments with value #' NULL (TRUE) or to throw an exception (FALSE). Default = TRUE. - +#' @internal +#' @noRd make_inheritance_checks <- function(arguments, target_classes, ignore_null = TRUE) { diff --git a/man/make_inheritance_checks.Rd b/man/make_inheritance_checks.Rd deleted file mode 100644 index be8e295..0000000 --- a/man/make_inheritance_checks.Rd +++ /dev/null @@ -1,24 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/make_inheritance_checks.R -\name{make_inheritance_checks} -\alias{make_inheritance_checks} -\title{Check that a set of arguments inherits from a set of classes -Throws an exception if one argument does not pass the checks. -Argument must have AT LEAST ONE of the specified classes to pass.} -\usage{ -make_inheritance_checks(arguments, target_classes, ignore_null = TRUE) -} -\arguments{ -\item{arguments}{a list object containing argument_name=argument pairs for -each argument. Argument names must be provided or else they will be ignored.} - -\item{target_classes}{character vector of the classes to check for.} - -\item{ignore_null}{boolean. Indicates whether to ignore arguments with value -NULL (TRUE) or to throw an exception (FALSE). Default = TRUE.} -} -\description{ -Check that a set of arguments inherits from a set of classes -Throws an exception if one argument does not pass the checks. -Argument must have AT LEAST ONE of the specified classes to pass. -} diff --git a/man/phsmethods.Rd b/man/phsmethods.Rd index 64143ac..762545f 100644 --- a/man/phsmethods.Rd +++ b/man/phsmethods.Rd @@ -2,6 +2,7 @@ % Please edit documentation in R/phsmethods.R \docType{package} \name{phsmethods} +\alias{phsmethods-package} \alias{phsmethods} \title{\code{phsmethods} package} \description{ @@ -11,3 +12,36 @@ Standard Methods for use in PHS. See the README on \href{https://github.com/Public-Health-Scotland/phsmethods#readme}{GitHub}. } +\seealso{ +Useful links: +\itemize{ + \item \url{https://github.com/Public-Health-Scotland/phsmethods} + \item \url{https://public-health-scotland.github.io/phsmethods/} + \item Report bugs at \url{https://github.com/Public-Health-Scotland/phsmethods/issues} +} + +} +\author{ +\strong{Maintainer}: Tina Fu \email{Yuyan.Fu2@phs.scot} + +Authors: +\itemize{ + \item David Caldwell \email{David.Caldwell@phs.scot} + \item Jack Hannah \email{jack.hannah2@phs.scot} + \item Ciara Gribben \email{Ciara.Gribben@phs.scot} + \item Chris Deans \email{Chris.Deans2@phs.scot} + \item Jaime Villacampa \email{Jaime.Villacampa@phs.scot} + \item Graeme Gowans \email{Graeme.Gowans@phs.scot} + \item James McMahon \email{James.McMahon@phs.scot} (\href{https://orcid.org/0000-0002-5380-2029}{ORCID}) + \item Nicolaos Christofidis \email{nicolaos.christofidis@phs.scot} +} + +Other contributors: +\itemize{ + \item Public Health Scotland \email{phs.datascience@phs.scot} [copyright holder] + \item Lucinda Lawrie \email{Lucinda.Lawrie@phs.scot} [reviewer] + \item Alice Byers [contributor] + \item Alan Yeung \email{Alan.Yeung@phs.scot} [contributor] +} + +}