Skip to content

Commit

Permalink
tighten up examples for debian runtime requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Jan 11, 2024
1 parent 4846954 commit a55596e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.1.1
Date: 2023-10-26 00:50:30 UTC
SHA: 2370ef886ef428f16bde1d99ea5d527cb5b61e93
Version: 0.1.2
Date: 2024-01-11 14:20:18 UTC
SHA: 48469549668880b518502d598e4f56765bf4ef1d
2 changes: 1 addition & 1 deletion R/melt_aorsf.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# need to make this to avoid possible memory leak in data.table melt
# avoid possible memory leak in data.table melt

melt_aorsf <-
function(data,
Expand Down
2 changes: 1 addition & 1 deletion R/orsf.R
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ orsf_train <- function(object, attach_data = TRUE){
#'
#' # specify but do not train the model by setting no_fit = TRUE.
#' object <- orsf(pbc_orsf, Surv(time, status) ~ . - id,
#' n_tree = 500, n_thread = 1, no_fit = TRUE)
#' n_tree = 10, no_fit = TRUE)
#'
#' # approximate the time it will take to grow 500 trees
#' time_estimated <- orsf_time_to_train(object)
Expand Down
12 changes: 6 additions & 6 deletions R/orsf_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
#' # used for ranking variables in the summary, unless we specify
#' # a different type of importance
#'
#' orsf_summarize_uni(object)
#' orsf_summarize_uni(object, n_variables = 2)
#'
#' # if we want to summarize object according to variables
#' # ranked by negation importance, we can compute negation
#' # importance within orsf_summarize_uni() as follows:
#'
#' orsf_summarize_uni(object, n_variables = 3, importance = 'negate')
#' orsf_summarize_uni(object, n_variables = 2, importance = 'negate')
#'
#'
orsf_summarize_uni <- function(object,
Expand Down Expand Up @@ -90,9 +90,9 @@ orsf_summarize_uni <- function(object,
#'
#' @examples
#'
#' object <- orsf(pbc_orsf, Surv(time, status) ~ . - id)
#' object <- orsf(pbc_orsf, Surv(time, status) ~ . - id, n_tree = 25)
#'
#' smry <- orsf_summarize_uni(object, n_variables = 3)
#' smry <- orsf_summarize_uni(object, n_variables = 2)
#'
#' print(smry)
#'
Expand Down Expand Up @@ -272,9 +272,9 @@ print.orsf_summary_uni <- function(x, n_variables = NULL, ...){
#'
#' library(data.table)
#'
#' object <- orsf(pbc_orsf, Surv(time, status) ~ . - id)
#' object <- orsf(pbc_orsf, Surv(time, status) ~ . - id, n_tree = 25)
#'
#' smry <- orsf_summarize_uni(object, n_variables = 3)
#' smry <- orsf_summarize_uni(object, n_variables = 2)
#'
#' as.data.table(smry)
#'
Expand Down

0 comments on commit a55596e

Please sign in to comment.