Skip to content

Commit

Permalink
Merge pull request #34 from yjunechoe/1.1.3
Browse files Browse the repository at this point in the history
1.1.3
  • Loading branch information
yjunechoe committed Mar 6, 2024
2 parents 72569f1 + a73e765 commit c0cb134
Show file tree
Hide file tree
Showing 28 changed files with 45 additions and 3,717 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.1.2
Date: 2024-02-16 16:22:21 UTC
SHA: 7e7dcf69b9d37cbd43f3b4ddb63916019f3bb32b
Version: 1.1.3
Date: 2024-03-01 15:04:08 UTC
SHA: 22acf1fd15fc7e663b9f46cfb85b428ad34dc9b2
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: jlmerclusterperm
Title: Cluster-Based Permutation Analysis for Densely Sampled Time Data
Version: 1.1.2
Version: 1.1.3
Authors@R:
person("June", "Choe", , "jchoe001@gmail.com", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-0701-921X"))
Expand Down
27 changes: 21 additions & 6 deletions R/aaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ julia_detect_cores <- function() {
}
is_setup <- function() isTRUE(.jlmerclusterperm$is_setup)

#' Check Julia setup requirements for jlmerclusterperm
#' Check Julia requirements for jlmerclusterperm
#'
#' @return Boolean
#' @export
Expand All @@ -47,7 +47,7 @@ julia_setup_ok <- function() {
#' `R_user_dir()` and falls back to `tempdir()`.
#' @param restart Whether to set up a fresh Julia session, given that one is already running.
#' If `FALSE` and `jlmerclusterperm_setup()` has already been called, nothing happens.
#' @param verbose Print progress and messages from Julia in the console
#' @param verbose Whether to print progress and messages from Julia in the console
#'
#' @examplesIf julia_setup_ok()
#' \donttest{
Expand Down Expand Up @@ -77,10 +77,25 @@ jlmerclusterperm_setup <- function(..., cache_dir = NULL, restart = TRUE, verbos
setup_with_progress <- function(..., cache_dir = NULL, verbose = TRUE) {
start_with_threads(verbose = verbose)
set_projenv(cache_dir = cache_dir, verbose = verbose)
source_jl(verbose = verbose)
define_globals()
cleanup_jl()
invisible(TRUE)
source_success <- withCallingHandlers(
source_jl(verbose = verbose),
error = function(...) {
cli::cli_alert_danger(c(
"Failed to compile {.pkg jlmerclusterperm}. ",
"Please submit an issue to {.url https://github.com/yjunechoe/jlmerclusterperm/issues}."
))
JuliaConnectoR::stopJulia()
.jlmerclusterperm$is_setup <- FALSE
return(FALSE)
}
)
if (source_success) {
define_globals()
cleanup_jl()
invisible(TRUE)
} else {
invisible(FALSE)
}
}

start_with_threads <- function(..., max_threads = 7L, verbose = TRUE) {
Expand Down
522 changes: 0 additions & 522 deletions README.html

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ following as you see fit.
To cite jlmerclusterperm:

- Choe, J. (2023). jlmerclusterperm: Cluster-Based Permutation Analysis
for Densely Sampled Time Data. R package version 1.1.2.
for Densely Sampled Time Data. R package version 1.1.3.
<https://cran.r-project.org/package=jlmerclusterperm>.

To cite the cluster-based permutation test:
Expand Down
Loading

0 comments on commit c0cb134

Please sign in to comment.