Skip to content

Commit 444ce03

Browse files
committed
Removed long-running examples (or added \dontrun).
1 parent f125991 commit 444ce03

7 files changed

+10
-13
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: mashr
22
Type: Package
33
Encoding: UTF-8
44
Title: Multivariate Adaptive Shrinkage
5-
Version: 0.2.76
5+
Version: 0.2.77
66
Date: 2023-10-17
77
Authors@R: c(person("Matthew","Stephens",role="aut"),
88
person("Sarah","Urbut",role="aut"),

R/data2cov.R

+2
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,13 @@ cov_flash = function (data, factors = c("default","nonneg"),
183183
#' matrices. It can be initialized with, for example running \code{cov_pca} with,
184184
#' say, 5 PCs.
185185
#' @examples
186+
#' \dontrun{
186187
#' data = mash_set_data(Bhat = cbind(c(1,2),c(3,4)), Shat = cbind(c(1,1),c(1,1)))
187188
#' U_pca = cov_pca(data,2)
188189
#' U_x = apply(data$Bhat, 2, function(x) x - mean(x))
189190
#' U_xx = t(U_x) %*% U_x / nrow(U_x)
190191
#' cov_ed(data,c(U_pca, list(xx = U_xx)))
192+
#' }
191193
#'
192194
#' @export
193195
#'

R/extreme_deconvolution.R

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
#' Roweis, Submitted to AOAS (2009) [arXiv/0905.2979]
8989
#'
9090
#' @examples
91+
#' \dontrun{
9192
#' ydata <-
9293
#' c(2.62434536, 0.38824359, 0.47182825, -0.07296862, 1.86540763,
9394
#' -1.30153870, 2.74481176, 0.23879310, 1.31903910, 0.75062962,
@@ -143,6 +144,7 @@
143144
#' projection[[i]] = matrix(c(i%%2,(i+1)%%2),1,2)
144145
#' res <- extreme_deconvolution(ydata, ycovar, xamp, xmean, xcovar,
145146
#' projection=projection, logfile="ExDeconDemo")
147+
#' }
146148
#'
147149
#' @export
148150
#'

R/get_functions.R

+1-6
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ get_n_significant_conditions = function(m, thresh = 0.05, conditions = NULL,
113113
#'
114114
#' @importFrom ashr get_fitted_g
115115
#'
116-
#' @examples
117-
#' simdata = simple_sims(50,5,1)
118-
#' data = mash_set_data(simdata$Bhat, simdata$Shat)
119-
#' m = mash(data, cov_canonical(data))
120-
#' get_estimated_pi(m)
121116
#' @export
122117
#'
123118
get_estimated_pi = function(m, dimension = c("cov","grid","all")){
@@ -274,4 +269,4 @@ get_pairwise_sharing_from_samples = function(m, factor=0.5, lfsr_thresh=0.05, FU
274269

275270
get_ncond = function(m){
276271
return(ncol(get_pm(m)))
277-
}
272+
}

man/cov_ed.Rd

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

man/extreme_deconvolution.Rd

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

man/get_estimated_pi.Rd

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

0 commit comments

Comments
 (0)