Skip to content

Commit 64987c0

Browse files
committed
update
1 parent 6ac9a0f commit 64987c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+22065
-84
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ build/
88
output/
99
paper/
1010
inst/doc
11-
/doc/
11+
doc/
1212
/Meta/
13-
docs

R/compo_sim.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
#' @param seed seed for random number generation
1616
#' @param verbose whether to print out summary of the number of recurrent events per patients
1717
#' @examples
18+
#' \dontrun{
1819
#' # example
1920
#' library(doParallel)
2021
#' registerDoParallel(cores = 16)
2122
#' rst <- foreach(i = 1:48) %dopar%{
2223
#' data_list <- compo_sim(
23-
#' n_patients = 200,
24+
#' n_patients = 500,
2425
#' seed = i,
2526
#' verbose = FALSE
2627
#' )
@@ -38,6 +39,7 @@
3839
#' df_rst <- t(do.call("cbind", rst))
3940
#' colMeans(df_rst)
4041
#' boxplot(df_rst)
42+
#' }
4143
compo_sim <- function(
4244
n_patients = 1000,
4345
n_vars = 10,
@@ -221,6 +223,7 @@ compo_sim <- function(
221223
#' @export
222224
#' @examples
223225
#' # example code
226+
#' \dontrun{
224227
#' library(doParallel)
225228
#' registerDoParallel(cores = 16)
226229
#' rst <- foreach(i = 1:48) %dopar%{
@@ -241,6 +244,7 @@ compo_sim <- function(
241244
#' df_rst <- t(do.call("cbind", rst))
242245
#' colMeans(df_rst)
243246
#' boxplot(df_rst)
247+
#' }
244248
compo_sim_mao <- function(
245249
n_patients = 1000,
246250
n_vars = 10,

R/step3_Rforce.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
#' \code{\link{loadRforce}}.
152152
#'
153153
#' @examples
154+
#' \donttest{
154155
#' ## Example using simulated data
155156
#' library(Rforce)
156157
#'
@@ -176,7 +177,7 @@
176177
#' )
177178
#'
178179
#' fit
179-
#'
180+
#'}
180181
#' @export
181182

182183
Rforce <- function(
@@ -374,7 +375,7 @@ Rforce <- function(
374375
as.numeric(min_gain),
375376
as.integer(mtry),
376377
as.integer(n_splits),
377-
as.integer(n_threads),
378+
ifelse(length(Sys.getenv("OMP_NUM_THREADS")) == 0, as.integer(Sys.getenv("OMP_NUM_THREADS")), as.integer(n_threads)),
378379
as.integer(seed)
379380
)
380381

docs/404.html

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/get-started.html

Lines changed: 387 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)