diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 888dd2b..366a871 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -59,21 +59,12 @@ jobs: if: steps.r-package-cache.outputs.cache-hit != 'true' run: install.packages("remotes") - # Install Homebrew and qpdf on macOS - name: Install Homebrew and qpdf if: runner.os == 'macOS' run: | - # Install Homebrew if not already installed - if ! command -v brew &> /dev/null; then - echo "Installing Homebrew..." - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - else - echo "Homebrew already installed." - fi - # Ensure Homebrew is updated + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update - # Install qpdf - brew install qpdf + brew install qpdf || echo "qpdf already installed." - name: Install system dependencies if: runner.os == 'Linux' diff --git a/R/censored.R b/R/censored.R index a60e79e..81417c2 100644 --- a/R/censored.R +++ b/R/censored.R @@ -1,3 +1,16 @@ +distrib <- .internals$nodes$constructors$distrib +distribution_node <- .internals$nodes$node_classes$distribution_node +as.greta_array <- .internals$greta_arrays$as.greta_array + +check_dims <- .internals$checks$check_dims +check_numeric_length_1 <- .internals$checks$check_numeric_length_1 +check_finite <- .internals$checks$check_finite +check_x_gte_y <- .internals$checks$check_x_gte_y +check_param_greta_array <- .internals$checks$check_param_greta_array + +tfp <- import("tensorflow_probability") +tf <- import("tensorflow") + normal_censored_distribution <- R6::R6Class( "normal_censored_distribution", inherit = distribution_node,