-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into expose_new_stan_args
- Loading branch information
Showing
12 changed files
with
196 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,8 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/[email protected] | ||
with: | ||
r-version: 'release' | ||
rtools-version: '42' | ||
- uses: r-lib/actions/[email protected] | ||
- uses: r-lib/actions/[email protected] | ||
- uses: r-lib/actions/[email protected] | ||
|
||
- name: Query dependencies | ||
run: | | ||
|
@@ -58,7 +55,7 @@ jobs: | |
install.packages("curl") | ||
shell: Rscript {0} | ||
|
||
- uses: Vampire/setup-wsl@v2 | ||
- uses: Vampire/setup-wsl@v3 | ||
with: | ||
distribution: Ubuntu-22.04 | ||
use-cache: 'false' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,11 +57,11 @@ jobs: | |
sudo apt-get install -y libcurl4-openssl-dev || true | ||
sudo apt-get install -y openmpi-bin openmpi-common libopenmpi-dev || true | ||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
rtools-version: ${{ matrix.config.rtools }} | ||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
|
||
- name: Query dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,8 @@ jobs: | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
- uses: r-lib/actions/[email protected].7 | ||
|
||
- name: Install Ubuntu dependencies | ||
run: | | ||
|
@@ -85,12 +85,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/[email protected] | ||
with: | ||
r-version: 'release' | ||
rtools-version: '42' | ||
- uses: r-lib/actions/[email protected] | ||
|
||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
|
||
- name: Query dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,12 +40,12 @@ jobs: | |
sudo apt-get install -y libcurl4-openssl-dev || true | ||
sudo apt-get install -y openmpi-bin openmpi-common libopenmpi-dev || true | ||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
rtools-version: ${{ matrix.config.rtools }} | ||
|
||
- uses: r-lib/actions/[email protected].2 | ||
- uses: r-lib/actions/[email protected].7 | ||
|
||
- name: Query dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
#' Coercion methods for CmdStan objects | ||
#' | ||
#' These methods are used to coerce objects into `cmdstanr` objects. | ||
#' Primarily intended for other packages to use when interfacing | ||
#' with `cmdstanr`. | ||
#' | ||
#' @param object to be coerced | ||
#' @param ... additional arguments | ||
#' | ||
#' @name cmdstan_coercion | ||
NULL | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanMCMC <- function(object, ...) { | ||
UseMethod("as.CmdStanMCMC") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanMLE <- function(object, ...) { | ||
UseMethod("as.CmdStanMLE") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanLaplace <- function(object, ...) { | ||
UseMethod("as.CmdStanLaplace") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanVB <- function(object, ...) { | ||
UseMethod("as.CmdStanVB") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanPathfinder <- function(object, ...) { | ||
UseMethod("as.CmdStanPathfinder") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanGQ <- function(object, ...) { | ||
UseMethod("as.CmdStanGQ") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanDiagnose <- function(object, ...) { | ||
UseMethod("as.CmdStanDiagnose") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters