Skip to content

Commit

Permalink
name-space update
Browse files Browse the repository at this point in the history
  • Loading branch information
kkholst committed Apr 15, 2024
1 parent 6b162af commit 590a7d3
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ importFrom(stats,glm.fit)
importFrom(stats,lm)
importFrom(stats,lm.fit)
importFrom(stats,lm.wfit)
importFrom(stats,model.extract)
importFrom(stats,model.frame)
importFrom(stats,model.matrix)
importFrom(stats,model.offset)
Expand All @@ -112,6 +113,7 @@ importFrom(stats,terms)
importFrom(stats,update)
importFrom(stats,vcov)
importFrom(stats,weighted.mean)
importFrom(stats,weights)
importFrom(survival,survfit)
importFrom(utils,head)
importFrom(utils,tail)
Expand Down
5 changes: 5 additions & 0 deletions R/design.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ offsets.design <- function(object, ...) {
specials <- function(object, ...) UseMethod("specials")

##' @export
##' @title Extract model component from [design] object
##' @param object [design] object
##' @param which model component (e.g., "offset", "weights", ...)
##' @aliases specials specials.design offsets offsets.design weights.design
##' @param ... Additional arguments to lower level functions
specials.design <- function(object, which, ...) {
return(object[[which]])
}
Expand Down
2 changes: 1 addition & 1 deletion R/targeted-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##' model.frame model.matrix na.pass nlminb predict
##' dnorm quantile terms weighted.mean runif
##' .getXlevels delete.response model.response gaussian formula
##' model.offset reformulate drop.terms
##' model.offset reformulate drop.terms weights model.extract
##' @importFrom digest sha1
##' @importFrom optimx optimx
##' @importFrom data.table data.table is.data.table
Expand Down
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![travis](https://travis-ci.com/kkholst/targeted.svg?branch=main)](https://travis-ci.com/kkholst/targeted)
[![coverage](https://codecov.io/github/kkholst/targeted/coverage.svg?branch=main)](https://app.codecov.io/github/kkholst/targeted?branch=main)
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/license/apache-2-0)
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](
https://opensource.org/license/apache-2-0)
[![cran](https://www.r-pkg.org/badges/version-last-release/targeted)](https://cranlogs.r-pkg.org/downloads/total/last-month/targeted)
<!-- badges: end -->

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- badges: start -->
[![R-CMD-check](https://github.com/kkholst/targeted/workflows/R-CMD-check/badge.svg?branch=master)](https://github.com/kkholst/targeted/actions)
[![coverage](https://app.codecov.io/github/kkholst/targeted/coverage.svg?branch=master)](https://app.codecov.io/github/kkholst/targeted?branch=master)
[![coverage](https://app.codecov.io/github/kkholst/targeted/coverage.svg?branch=main)](https://app.codecov.io/github/kkholst/targeted?branch=main)
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/license/apache-2-0)
[![cran](https://www.r-pkg.org/badges/version-last-release/targeted)](https://cranlogs.r-pkg.org/downloads/total/last-month/targeted)
<!-- badges: end -->
Expand Down
22 changes: 22 additions & 0 deletions man/specials.design.Rd

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

0 comments on commit 590a7d3

Please sign in to comment.