Skip to content

Commit fe51d80

Browse files
committed
little fixes; now passing R CMD check if examples skipped
1 parent 4f03c01 commit fe51d80

9 files changed

+34
-12
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
^\.Rproj\.user$
33
^\.lintr$
44
^ex$
5+
^\.project\.url$

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: hdrm
22
Title: High-Dimensional Regression Modeling
3-
Date: 2023-12-09
4-
Version: 0.8.0
3+
Date: 2023-12-13
4+
Version: 0.9.0
55
Author: Patrick Breheny and Jian Huang
66
Maintainer: Patrick Breheny <patrick-breheny@uiowa.edu>
77
Description: Examples, simulations, and figures from the book, "High-Dimensional

R/mfdr-power.R

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#'
33
#' Reproduces Example Figure 6.4 from the book. If you specify any options, your results may look different.
44
#'
5+
#' @param out Output of `Ex6.2()`
6+
#'
57
#' @examples
68
#' \dontrun{
79
#' out <- Ex6.2()

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![GitHub version](https://img.shields.io/static/v1?label=GitHub&message=0.8.0&color=blue&logo=github)](https://github.com/pbreheny/hdrm)
1+
[![GitHub version](https://img.shields.io/static/v1?label=GitHub&message=0.9.0&color=blue&logo=github)](https://github.com/pbreheny/hdrm)
22

33
# hdrm: High dimensional regression modeling
44

inst/tinytest/gen_data.r

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ ggplot2::autoplot(res)
5050
rho <- 0.4
5151
b <- rnorm(10)
5252
E <- (1-rho)*diag(10) + matrix(rho, 10, 10)
53-
expect_equal(crossprod(b, E) %*% b |> drop(), calc_bsb(b, rho, 'exchangeable'))
53+
expect_equal(crossprod(b, E) %*% b |> drop(), hdrm:::calc_bsb(b, rho, 'exchangeable'))
5454
rho <- 0.9
5555
RHO <- matrix(rho^(0:9), 10, 10, byrow=TRUE)
5656
A <- Matrix::bandSparse(10, k=0:9, diagonals=RHO, symmetric=TRUE)
57-
expect_equal(crossprod(b, A) %*% b |> drop(), calc_bsb(b, rho, 'autoregressive'))
57+
expect_equal(crossprod(b, A) %*% b |> drop(), hdrm:::calc_bsb(b, rho, 'autoregressive'))

man/Ex6.3.Rd

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Fig2.10.Rd

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Fig6.4.Rd

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pollution.Rd

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ the analysis as well.
6666
occupations
6767
\item
6868
\code{Poor}: Percentage of households with annual income under
69-
\$3,000 in 1960
69+
$3,000 in 1960
7070
\item
7171
\code{HC}: Pollution potential of hydrocarbons
7272
\item
@@ -87,4 +87,4 @@ McDonald GC and Schwing RC (1973). Instabilities of Regression Estimates
8787
Relating Air Pollution to Mortality. \emph{Technometrics}, \bold{15}:
8888
463-481.
8989

90-
}
90+
}

0 commit comments

Comments
 (0)