Skip to content

Commit

Permalink
Fix CRAN test issues by exporting more functions
Browse files Browse the repository at this point in the history
  • Loading branch information
billdenney committed Apr 29, 2023
1 parent 7c63393 commit f47453a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
8 changes: 8 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ S3method(PKNCAdose,tbl_df)
S3method(as.data.frame,PKNCAconc)
S3method(as.data.frame,PKNCAdose)
S3method(as.data.frame,PKNCAresults)
S3method(dplyr::group_vars,PKNCAconc)
S3method(dplyr::group_vars,PKNCAdose)
S3method(exclude,default)
S3method(filter,PKNCAconc)
S3method(filter,PKNCAdose)
Expand All @@ -22,6 +24,9 @@ S3method(formula,PKNCAdose)
S3method(full_join,PKNCAconc)
S3method(full_join,PKNCAdose)
S3method(full_join,PKNCAresults)
S3method(getDataName,PKNCAconc)
S3method(getDataName,PKNCAdose)
S3method(getDataName,PKNCAresults)
S3method(getDepVar,PKNCAconc)
S3method(getDepVar,PKNCAdose)
S3method(getGroups,PKNCAconc)
Expand All @@ -35,6 +40,9 @@ S3method(group_by,PKNCAresults)
S3method(inner_join,PKNCAconc)
S3method(inner_join,PKNCAdose)
S3method(inner_join,PKNCAresults)
S3method(is_sparse_pk,PKNCAconc)
S3method(is_sparse_pk,PKNCAdata)
S3method(is_sparse_pk,PKNCAresults)
S3method(left_join,PKNCAconc)
S3method(left_join,PKNCAdose)
S3method(left_join,PKNCAresults)
Expand Down
3 changes: 3 additions & 0 deletions R/class-PKNCAconc.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ formula.PKNCAconc <- function(x, ...) {
#' order.
#' @export
#' @importFrom stats model.frame
#' @method model.frame PKNCAconc
model.frame.PKNCAconc <- function(formula, ...) {
formula$data[, all.vars(formula$formula), drop=FALSE]
}
Expand Down Expand Up @@ -265,6 +266,7 @@ group_vars.PKNCAconc <- function(x) {
}

#' @rdname getDataName
#' @export
getDataName.PKNCAconc <- function(object) {
if (is_sparse_pk(object)) {
"data_sparse"
Expand Down Expand Up @@ -364,6 +366,7 @@ print.PKNCAconc <- function(x, n=6, summarize=FALSE, ...) {
}

#' @rdname is_sparse_pk
#' @export
is_sparse_pk.PKNCAconc <- function(object) {
"data_sparse" %in% names(object)
}
Expand Down
1 change: 1 addition & 0 deletions R/class-PKNCAdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ PKNCAdata.default <- function(data.conc, data.dose, ...,
}

#' @rdname is_sparse_pk
#' @export
is_sparse_pk.PKNCAdata <- function(object) {
is_sparse_pk(object$conc)
}
Expand Down
11 changes: 8 additions & 3 deletions R/class-PKNCAdose.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ PKNCAdose <- function(data, ...)

#' @rdname PKNCAdose
#' @export
PKNCAdose.default <- function(data, ...)
PKNCAdose.default <- function(data, ...) {
PKNCAdose.data.frame(as.data.frame(data), ...)
}
#' @rdname PKNCAdose
#' @export
PKNCAdose.tbl_df <- function(data, ...)
PKNCAdose.tbl_df <- function(data, ...) {
PKNCAdose.data.frame(as.data.frame(data), ...)
}

#' @rdname PKNCAdose
#' @export
Expand Down Expand Up @@ -242,6 +244,7 @@ formula.PKNCAdose <- function(x, ...) {
#' @rdname model.frame.PKNCAconc
#' @export
#' @importFrom stats model.frame
#' @method model.frame PKNCAdose
model.frame.PKNCAdose <- function(formula, ...) {
cbind(getDepVar.PKNCAdose(formula),
getIndepVar.PKNCAdose(formula),
Expand Down Expand Up @@ -281,8 +284,10 @@ group_vars.PKNCAdose <- function(x) {
}

#' @rdname getDataName
getDataName.PKNCAdose <- function(object)
#' @export
getDataName.PKNCAdose <- function(object) {
"data"
}

#' @rdname print.PKNCAconc
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/class-PKNCAresults.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ as.data.frame.PKNCAresults <- function(x, ..., out.format=c('long', 'wide')) {
}

#' @rdname getDataName
#' @export
getDataName.PKNCAresults <- function(object) {
"result"
}

#' @rdname is_sparse_pk
#' @export
is_sparse_pk.PKNCAresults <- function(object) {
is_sparse_pk(object$data)
}
Expand Down
6 changes: 3 additions & 3 deletions man/group_vars.PKNCAconc.Rd

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

0 comments on commit f47453a

Please sign in to comment.