Skip to content

Commit cc2e36d

Browse files
authored
Merge pull request #937 from stan-dev/feature/fit-inits
Create inits from fit and draws objects
2 parents cd3da48 + ef9e718 commit cc2e36d

20 files changed

Lines changed: 660 additions & 23 deletions

.github/workflows/Test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ jobs:
6363
- name: Test coverage (Windows)
6464
if: runner.os == 'Windows'
6565
run: |
66-
options(covr.gcov = 'C:/rtools40/mingw64/bin/gcov.exe');
66+
options(covr.gcov = 'C:/rtools44/mingw64/bin/gcov.exe');
6767
covr::codecov(type = "tests", function_exclusions = "sample_mpi")
6868
shell: Rscript {0}

.github/workflows/cmdstan-tarball-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
config:
2525
- {os: macOS-latest, r: 'release', rtools: ''}
26-
- {os: windows-latest, r: 'release', rtools: '42'}
26+
- {os: windows-latest, r: 'release', rtools: '44'}
2727
- {os: ubuntu-20.04, r: 'release', rtools: ''}
2828
env:
2929
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Authors@R:
1010
person(given = "Andrew", family = "Johnson", role = c("aut", "cre"),
1111
email = "andrew.johnson@arjohnsonau.com",
1212
comment = c(ORCID = "0000-0001-7000-8065")),
13+
person(given = "Steve", family = "Bronder", role = "aut"),
1314
person(given = "Ben", family = "Bales", role = "ctb"),
1415
person(given = "Mitzi", family = "Morris", role = "ctb"),
1516
person(given = "Mikhail", family = "Popov", role = "ctb"),
@@ -18,7 +19,8 @@ Authors@R:
1819
email = "will.landau@gmail.com", comment = c(ORCID = "0000-0003-1878-3253")),
1920
person(given = "Jacob", family = "Socolar", role = "ctb"),
2021
person(given = "Martin", family = "Modrák", role = "ctb"),
21-
person(given = "Steve", family = "Bronder", role = "ctb"))
22+
person(given = "Ven", family = "Popov", role = "ctb")
23+
)
2224
Description: A lightweight interface to 'Stan' <https://mc-stan.org>.
2325
The 'CmdStanR' interface is an alternative to 'RStan' that calls the command
2426
line interface for compilation and running algorithms instead of interfacing

NAMESPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ S3method(as_draws,CmdStanMCMC)
66
S3method(as_draws,CmdStanMLE)
77
S3method(as_draws,CmdStanPathfinder)
88
S3method(as_draws,CmdStanVB)
9+
S3method(process_init,"function")
10+
S3method(process_init,CmdStanLaplace)
11+
S3method(process_init,CmdStanMCMC)
12+
S3method(process_init,CmdStanMLE)
13+
S3method(process_init,CmdStanPathfinder)
14+
S3method(process_init,CmdStanVB)
15+
S3method(process_init,default)
16+
S3method(process_init,draws)
17+
S3method(process_init,list)
918
export(as.CmdStanDiagnose)
1019
export(as.CmdStanGQ)
1120
export(as.CmdStanLaplace)
@@ -40,3 +49,4 @@ export(write_stan_json)
4049
export(write_stan_tempfile)
4150
import(R6)
4251
importFrom(posterior,as_draws)
52+
importFrom(stats,aggregate)

0 commit comments

Comments
 (0)