Skip to content

Commit

Permalink
Merge pull request #937 from stan-dev/feature/fit-inits
Browse files Browse the repository at this point in the history
Create inits from fit and draws objects
  • Loading branch information
andrjohns authored May 4, 2024
2 parents cd3da48 + ef9e718 commit cc2e36d
Show file tree
Hide file tree
Showing 20 changed files with 660 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ jobs:
- name: Test coverage (Windows)
if: runner.os == 'Windows'
run: |
options(covr.gcov = 'C:/rtools40/mingw64/bin/gcov.exe');
options(covr.gcov = 'C:/rtools44/mingw64/bin/gcov.exe');
covr::codecov(type = "tests", function_exclusions = "sample_mpi")
shell: Rscript {0}
2 changes: 1 addition & 1 deletion .github/workflows/cmdstan-tarball-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
config:
- {os: macOS-latest, r: 'release', rtools: ''}
- {os: windows-latest, r: 'release', rtools: '42'}
- {os: windows-latest, r: 'release', rtools: '44'}
- {os: ubuntu-20.04, r: 'release', rtools: ''}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand Down
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Authors@R:
person(given = "Andrew", family = "Johnson", role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-7000-8065")),
person(given = "Steve", family = "Bronder", role = "aut"),
person(given = "Ben", family = "Bales", role = "ctb"),
person(given = "Mitzi", family = "Morris", role = "ctb"),
person(given = "Mikhail", family = "Popov", role = "ctb"),
Expand All @@ -18,7 +19,8 @@ Authors@R:
email = "[email protected]", comment = c(ORCID = "0000-0003-1878-3253")),
person(given = "Jacob", family = "Socolar", role = "ctb"),
person(given = "Martin", family = "Modrák", role = "ctb"),
person(given = "Steve", family = "Bronder", role = "ctb"))
person(given = "Ven", family = "Popov", role = "ctb")
)
Description: A lightweight interface to 'Stan' <https://mc-stan.org>.
The 'CmdStanR' interface is an alternative to 'RStan' that calls the command
line interface for compilation and running algorithms instead of interfacing
Expand Down
10 changes: 10 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ S3method(as_draws,CmdStanMCMC)
S3method(as_draws,CmdStanMLE)
S3method(as_draws,CmdStanPathfinder)
S3method(as_draws,CmdStanVB)
S3method(process_init,"function")
S3method(process_init,CmdStanLaplace)
S3method(process_init,CmdStanMCMC)
S3method(process_init,CmdStanMLE)
S3method(process_init,CmdStanPathfinder)
S3method(process_init,CmdStanVB)
S3method(process_init,default)
S3method(process_init,draws)
S3method(process_init,list)
export(as.CmdStanDiagnose)
export(as.CmdStanGQ)
export(as.CmdStanLaplace)
Expand Down Expand Up @@ -40,3 +49,4 @@ export(write_stan_json)
export(write_stan_tempfile)
import(R6)
importFrom(posterior,as_draws)
importFrom(stats,aggregate)
Loading

0 comments on commit cc2e36d

Please sign in to comment.