Skip to content

Commit

Permalink
add ci debugging on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
JsLth committed Nov 7, 2024
1 parent c7d8105 commit 016452f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions R/new_photon.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@
#' # connect to arbitrary server
#' photon <- new_photon(url = "photonserver.org")
#'
#' \donttest{
#' if (has_java("11")) {
#' # set up a local instance in the current working directory
#' photon <- new_photon("photon", country = "Ireland")
#' photon$remove_data() # cleanup
#' }}
#' photon <- new_photon("photon", country = "Monaco")
#' }
new_photon <- function(path = NULL,
url = NULL,
photon_version = NULL,
Expand Down
4 changes: 3 additions & 1 deletion R/run_photon.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ run_start <- function(self, private, args, timeout = 60, quiet = FALSE) {
start_supervise(self, private, proc, timeout, quiet)
versionize_logs(private)
log_error <- assemble_log_error(private$logs)
if (is_macos()) print(log_error)
abort_log_error(log_error, quiet, class = "start_error")

if (!self$is_running() && !nzchar(log_error)) {
ph_stop(c( # nocov start
Expand All @@ -71,7 +73,7 @@ run_start <- function(self, private, args, timeout = 60, quiet = FALSE) {
)) # nocov end
}

abort_log_error(log_error, quiet, class = "start_error")

cli::cli_progress_done()
invisible(proc)
}
Expand Down
6 changes: 2 additions & 4 deletions man/new_photon.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 016452f

Please sign in to comment.