Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
979 commits
Select commit Hold shift + click to select a range
5946e41
turning off `release_candidate = TRUE`
njtierney Nov 9, 2023
6a8c4db
minor update to samplers.Rd
njtierney Nov 9, 2023
a673011
increase number of samples to make sure it passes
njtierney Nov 9, 2023
845529c
add some notes about refactoring, and use a checker function to simpl…
njtierney Nov 15, 2023
8308fe9
comment out/bookmark the browser debugging
njtierney Nov 15, 2023
e31d2a0
abstract out some internal checking code into functions, to make func…
njtierney Nov 23, 2023
49e5973
provide slightly more verbose code demonstration of chol2symm
njtierney Nov 23, 2023
b69defe
update github workflows to use v2
njtierney Nov 23, 2023
6729a9a
replacing a few more error checkings with check_ functions
njtierney Nov 23, 2023
cf42a5b
add browser bookmarks and dev notes
njtierney Jan 9, 2024
dff7f46
use explaining variables
njtierney Jan 9, 2024
7a1ac1a
ignore revdep
njtierney Feb 14, 2024
3415784
use TF version 2.15, and swap the order when using `greta_sitrep()` -…
njtierney Jan 30, 2024
925edc4
version bump
njtierney Feb 1, 2024
8333447
try swapping TFP and TF installations to see if this impacts sitrep l…
njtierney Mar 1, 2024
05029da
also related to #618
njtierney Mar 10, 2024
14c9f84
move failing cholesky tests out into separate test file
njtierney Apr 24, 2024
a52f9d2
rebasing stuff
njtierney Apr 30, 2024
75a99e6
rebasing notes
njtierney Apr 30, 2024
911e414
remove extra bits from rebasing
njtierney Apr 30, 2024
3557ea0
a bunch of small doc fixes that were triggering at R CMD Check
njtierney Apr 30, 2024
a8bfeec
excess fluff from rebase
njtierney Apr 30, 2024
c2327f8
Documentation tweaks:
njtierney May 2, 2024
f22a921
Merge remote-tracking branch 'upstream/tf2-poke-tf-fun' into tf2-poke…
njtierney May 2, 2024
8d918db
merge commit
njtierney May 2, 2024
d64d9fb
Merge pull request #587 from njtierney/cholesky-585
njtierney May 2, 2024
b69cba6
Minor file changes:
njtierney May 3, 2024
0be5164
to speed up test speeds, use lazytest and move specific numeric issue…
njtierney May 3, 2024
46e0218
write some notes about where the issue with Wishart/Cholesky is happe…
njtierney Nov 10, 2023
53848bc
expand the writing in tf_chol to make it slightly easier to debug
njtierney Nov 13, 2023
642e0b5
name arguments of `calculate_target_tensor_list` and add a further no…
njtierney Nov 15, 2023
d6d87bb
fix how we save to cholesky and save it to a node
njtierney Nov 15, 2023
0684f55
Trying out a temporary warning to catch issues with sampling with a c…
njtierney Jan 29, 2024
879974a
add a temporary patch fix to warn when sampling a greta array with a …
njtierney Jan 30, 2024
2972fa8
resolves #614
njtierney May 6, 2024
89b4909
use wiki image of Grete Hermann, closes #598
njtierney May 6, 2024
294fa94
Various fixes to TF install:
njtierney May 6, 2024
5d31dd3
fixes for #628
njtierney May 9, 2024
12a7b4c
update lazytest tests
njtierney May 9, 2024
c951562
make a note in the optimiser for what keras3 requires
njtierney May 10, 2024
917f936
use golden_cholesky flag. An attempt at #604
njtierney May 10, 2024
471524e
add rhub workflow - resolves #626
njtierney May 10, 2024
ace1f81
resolve matrix multiplication issue - #464
njtierney May 21, 2024
6bd9126
some minor things and browser placements
njtierney Jul 16, 2024
ce571e8
some experimentation with a cholesky patch fix with a warning system
njtierney Jul 16, 2024
ea86382
minor Rd doc changes
njtierney Jul 16, 2024
9f58d08
replace outdated format_error approach with cli::cli_abort/warn/infor…
njtierney Jul 16, 2024
5589322
Merge branch 'tf2-poke-tf-fun' into tf2-poke-tf-fun
njtierney Jul 22, 2024
fbc9169
Merge pull request #636 from njtierney/tf2-poke-tf-fun
njtierney Jul 22, 2024
54b9c02
Addressing cholesky initialisation issue in #583, #584, #585.
njtierney Jul 22, 2024
7ff9f71
Tidy up NEWS
njtierney Jul 22, 2024
b299634
remove golden_cholesky and other warning flags about cholesky not wor…
njtierney Jul 23, 2024
91c7ba1
Improving testing around Wishart/LJK correlation and cholesky.
njtierney Jul 23, 2024
fe16a9d
ignore testlog* files
njtierney Jul 23, 2024
58c0742
update distribution snapshot test to not have warning message
njtierney Jul 23, 2024
2c1da8f
correctly ignore testlog.md
njtierney Jul 23, 2024
f2d5922
write custom test expectations
njtierney Jul 24, 2024
a0b92b0
Clarify that we want to test that the cholesky factor to be lower tri…
njtierney Jul 24, 2024
bfc4684
update/add more cholesky tests re #585
njtierney Jul 25, 2024
30ad8bd
Resolve #630. use %||% to replace if-null pattern
njtierney Jul 25, 2024
623907a
update NEWS
njtierney Jul 25, 2024
d3e8151
Merge pull request #640 from njtierney/use-null-pipe-630
njtierney Jul 25, 2024
f10f540
add is.greta_mcmc_list
njtierney Jul 26, 2024
15710ba
Add explaining variables and functions
njtierney Jul 26, 2024
8a74487
remove R 3.X.X code for head/tail calculations as we depend on R >= 4…
njtierney Jul 26, 2024
3c0d020
Merge pull request #641 from njtierney/use-explaining-variables-631
njtierney Jul 26, 2024
46ed038
Merge branch 'tf2-poke-tf-fun' into tf2-change-chol-target-583-4-5
njtierney Jul 26, 2024
302b868
Merge pull request #637 from njtierney/tf2-change-chol-target-583-4-5
njtierney Jul 26, 2024
ba8569a
implement greta_mcmc_list print methods
njtierney Jul 29, 2024
e614030
first pass at custom greta array print
njtierney Jul 29, 2024
3295cea
Capture cases where max rows is number of rows
njtierney Jul 29, 2024
bc3c060
add fancy print methods :sparkle:
njtierney Jul 29, 2024
4b15847
- export print method
njtierney Jul 29, 2024
455cc76
tweaking colours
njtierney Jul 29, 2024
7d9d50a
use ... instead of -
njtierney Jul 30, 2024
b8255df
Add snapshots for calculate print method to capture cases where it re…
njtierney Jul 30, 2024
8df45f2
update WORDLIST
njtierney Jul 30, 2024
7c6bbbc
tweak MCMC print method
njtierney Jul 30, 2024
92eb5c3
Merge pull request #647 from njtierney/greta-mcmc-print-333
njtierney Jul 30, 2024
607a4fd
Cover more edge cases with printing MCMC where the number of selected…
njtierney Jul 30, 2024
d1b25c7
remove unused (yet) import of {rlang}
njtierney Jul 30, 2024
2287519
Merge pull request #655 from njtierney/mcmc-print-neg-654
njtierney Jul 30, 2024
c96a29c
expand tests to cover print ranges
njtierney Jul 30, 2024
852069e
add a little hack around printing unknowns. There will be another way…
njtierney Jul 30, 2024
bab7d5c
remove erraneous x argument from unknowns
njtierney Jul 30, 2024
f85f489
set seeds for reproducibility
njtierney Jul 30, 2024
24e2c43
update greta array snapshots
njtierney Jul 30, 2024
a260688
NEWS bump
njtierney Jul 30, 2024
22665f6
Merge branch 'tf2-poke-tf-fun' into greta-array-print-480
njtierney Jul 30, 2024
a859e6b
Merge pull request #644 from njtierney/greta-array-print-480
njtierney Jul 30, 2024
ac46467
Refactoring vapply uses
njtierney Jul 30, 2024
bfe90fe
update calculate print method tests and seed
njtierney Aug 1, 2024
ac90e80
Refactoring vapply calls for clearer intent:
njtierney Aug 1, 2024
4131f30
Merge pull request #658 from njtierney/vapply-refactor-377
njtierney Aug 1, 2024
6fa9dd7
Merge pull request #534 from njtierney/tf2-poke-tf-fun
njtierney Aug 1, 2024
0b546e8
- `restart` argument for `install_greta_deps()` and `reinstall_greta_…
njtierney Aug 1, 2024
84d3025
update wordlist
njtierney Aug 1, 2024
0027b6f
- Add restart character option
njtierney Aug 5, 2024
a9fbff7
- use python 3.10
njtierney Aug 6, 2024
7db171e
Merge pull request #672 from njtierney/install-deps-restart-r-523-sim…
njtierney Aug 6, 2024
7b9eb5c
* Added option to restart R + run `library(greta)` after installation…
njtierney Aug 6, 2024
e1bcdc2
Merge pull request #674 from njtierney/py-deps-object-664
njtierney Aug 6, 2024
05e8835
Adds `greta_deps_receipt()` to list the current main python packages …
njtierney Aug 6, 2024
3560a62
* remove `method` and `conda` arguments from `reinstall_greta_deps()`
njtierney Aug 6, 2024
f68da89
Merge pull request #676 from njtierney/greta-deps-receipt
njtierney Aug 6, 2024
a26b536
Add internal data files `.deps_tf` and `.deps_tfp` to track dependenc…
njtierney Aug 6, 2024
33eb5a9
add join tf_tfp data with both versions
njtierney Aug 6, 2024
fd88f77
still trying to think through the logic of how this checker will work
njtierney Aug 6, 2024
e5eb8aa
add some notes on process of checking
njtierney Aug 6, 2024
69f7f37
* Added checking suite to ensure you are using valid versions of TF, …
njtierney Aug 7, 2024
b14a958
further tweaks to get wording right about version numbers
njtierney Aug 7, 2024
fac090e
* Ensure Python 3.12, TF > 2.15.0, and TFP > 0.23.0 are not valid
njtierney Aug 8, 2024
34220de
* update greta_deps_tf_tfp docs
njtierney Aug 8, 2024
9480bb1
* update greta_deps_tf_tfp docs
njtierney Aug 8, 2024
ec5f67f
Merge pull request #677 from njtierney/known-valid-deps-666
njtierney Aug 8, 2024
2b92c62
* remove `greta_nodes_install/conda_*()` options as #493 makes them d…
njtierney Aug 8, 2024
c602235
update snapshots
njtierney Aug 8, 2024
31d5f14
update documentation on installation logs
njtierney Aug 8, 2024
5a347b5
type
njtierney Aug 8, 2024
f335abc
ensure package is loaded to load data?
njtierney Aug 8, 2024
37447cc
try not having lazydata
njtierney Aug 8, 2024
61875f3
update gh action
njtierney Aug 8, 2024
4e9e40b
turn back on LazyData
njtierney Aug 8, 2024
f5379b2
run library(greta) before installing deps on GH actions
njtierney Aug 8, 2024
c275ea5
Touch up the text used when greta cannot be loaded
njtierney Aug 8, 2024
d24b207
update failure to load msg
njtierney Aug 8, 2024
91daa69
* update python deps test to run valid test for all known OSs.
njtierney Aug 8, 2024
1fca91a
skip a specific future test on windows CI
njtierney Aug 8, 2024
c44f75b
Ensure suggested versions are just one value
njtierney Aug 8, 2024
1e2f5fc
skip certain snapshot tests on certain OSs as there are minor differe…
njtierney Aug 8, 2024
855e8e6
fix typos, update spelling WORDLIST
njtierney Aug 8, 2024
60e241f
Merge pull request #683 from njtierney/collate-install-logs-493
njtierney Aug 9, 2024
d2f39f2
* skip test: test_inference_numerical_issues.R (#577)
njtierney Aug 9, 2024
dadfedb
ensure remotes is installed
njtierney Aug 9, 2024
26b989c
* different approach to installing remotes
njtierney Aug 9, 2024
6bf3ae6
skip these print checks on CI, they are too fragile
njtierney Aug 9, 2024
6a541bc
Merge pull request #686 from njtierney/fix-ci-659
njtierney Aug 9, 2024
16a6b2e
* add call = rlang::caller_env()
njtierney Aug 9, 2024
05c1d7c
Merged upstream/master into abstract-error-checkers-529
njtierney Aug 9, 2024
e1b2fa4
added class printing to greta_array for non_greta_data_array
njtierney Aug 12, 2024
0874aea
* Misc changes to whitespace/line length
njtierney Aug 12, 2024
a4c4fa7
* add check_finite_positive_scalar_integer
njtierney Aug 12, 2024
374f52c
Adding more checking functions
njtierney Aug 13, 2024
016464b
Continue to add many checking functions:
njtierney Aug 14, 2024
3efb9d4
add check_for_errors()
njtierney Aug 14, 2024
386e21e
Adding more checking functions
njtierney Aug 15, 2024
360d23c
use snapshot, error = TRUE
njtierney Aug 15, 2024
fe3356e
Add more checking functions:
njtierney Aug 16, 2024
53dd4af
Merge pull request #687 from njtierney/abstract-error-checkers-529
njtierney Aug 16, 2024
0ac04d1
* update README with latest installation instructions
njtierney Aug 16, 2024
53a39d2
various small tweaks to installation documentation
njtierney Aug 16, 2024
6637bf0
Merge pull request #699 from njtierney/update-installation-notes
njtierney Aug 16, 2024
91ffceb
add a stub of an installation vignette
njtierney Aug 16, 2024
fe3d6b0
try fixing CRAN badge
njtierney Aug 16, 2024
0320881
improves the text formatting
njtierney Aug 16, 2024
e39c6d7
add `read_greta_install_log()`
njtierney Aug 16, 2024
4fa2945
Merge pull request #706 from njtierney/add-nice-pre-code-tags
njtierney Aug 16, 2024
423c347
address some breaking build changes from mis-specified documentation
njtierney Aug 19, 2024
57f2347
Merge pull request #707 from njtierney/fix-missing-install-rd-parts
njtierney Aug 19, 2024
8a21193
add some missing `skip_if_not(check_tf_version())`
njtierney Aug 19, 2024
cbddf4f
Merge pull request #709 from njtierney/fix-r-universe-builds
njtierney Aug 19, 2024
e788eb0
Use `expect_snapshot(error = TRUE, ...)` over `expect_snapshot_error`…
njtierney Aug 19, 2024
5e63d77
Update "get_started" to use more current information and to link them…
njtierney Aug 20, 2024
5c71d94
Merge pull request #710 from njtierney/re-write-snapshot-error-693
njtierney Aug 20, 2024
c4bf2eb
Some small name changes in installation(ers)
njtierney Aug 20, 2024
298a8a1
Merge pull request #711 from njtierney/greta-deps-spec-688
njtierney Aug 20, 2024
0ea17e6
improves the text formatting
njtierney Aug 16, 2024
89a7593
add `read_greta_install_log()`
njtierney Aug 16, 2024
933002a
address some breaking build changes from mis-specified documentation
njtierney Aug 19, 2024
d5d5af1
add some missing `skip_if_not(check_tf_version())`
njtierney Aug 19, 2024
ca5a775
Use `expect_snapshot(error = TRUE, ...)` over `expect_snapshot_error`…
njtierney Aug 19, 2024
1561d59
Some small name changes in installation(ers)
njtierney Aug 20, 2024
f2dd7cd
update to use greta_deps_spec(), and other small tweaks
njtierney Aug 20, 2024
ba88d41
* Improved `write_greta_install_log()` and `read_greta_install_log()`…
njtierney Aug 20, 2024
715019d
helpful pointers from @maelle re writing files with file.path and spe…
njtierney Aug 20, 2024
3a83413
mention correct logfile reading
njtierney Aug 21, 2024
f31a0db
Merge pull request #712 from njtierney/save-logfiles-local-703
njtierney Aug 21, 2024
c3189ee
* rename `read_greta_install_log()` --> `open_greta_install_log()`
njtierney Aug 21, 2024
39f2a93
Merge branch 'master' into add-installation-vignette
njtierney Aug 21, 2024
c1734b7
test posteriors for release
njtierney Aug 21, 2024
34d6bdd
news polish
njtierney Aug 21, 2024
e366300
fixing some URLs
njtierney Aug 21, 2024
bbd7142
fix duplicate msg arg
njtierney Aug 21, 2024
7ccfeac
read_greta_install_log --> open_greta_install_log
njtierney Aug 21, 2024
d481c9f
update to open_greta_install_log in docs
njtierney Aug 21, 2024
845746e
Merge pull request #700 from njtierney/add-installation-vignette
njtierney Aug 21, 2024
143a739
fix CRAN badge, move tail image to bottom
njtierney Aug 21, 2024
a74a875
Merge pull request #717 from njtierney/fix-readme-badges
njtierney Aug 21, 2024
eabab4a
Update README.md with better R universe installation
njtierney Aug 21, 2024
001193a
fixing more URLs
njtierney Aug 22, 2024
e4bd9f4
use DOIs instead of URL for Gao + Han. (Thanks @maelle!)
njtierney Aug 28, 2024
9d6960c
Add GitHub links to DESCRIPTION
njtierney Aug 28, 2024
bae9d1b
note skipping geweke tests for the moment
njtierney Aug 28, 2024
3a18bb1
* update URLs
njtierney Aug 28, 2024
c2d8663
set the RELEASE_CANDIDATE env to false to avoid timeout on tests
njtierney Aug 30, 2024
756e11b
Improve naming of helper functions inside of `get_enough_draws()`
njtierney Oct 9, 2024
92d6cfc
Define `n_samples` as `sampler_burst_length`. This is a small bug we …
njtierney Oct 10, 2024
595f7b2
Merge pull request #714 from njtierney/release-0-5-0-426
njtierney Oct 10, 2024
0b2d553
first pass at splitting up check_mvn_samples and check_samples into s…
njtierney Oct 10, 2024
f5a7303
add a helper function for doing Kolmogorov-Smirnov test on mcmc sampl…
njtierney Oct 14, 2024
039d420
split test_posteriors up into separate test files.
njtierney Oct 14, 2024
1bf0946
* add argument names in test_posteriors_wishart.R
njtierney Oct 16, 2024
cb14e95
Merge pull request #725 from njtierney/add-checkers-test-posteriors-723
njtierney Oct 16, 2024
8a18adf
Addresses FillTriangular
njtierney Oct 16, 2024
3f3a51a
add a test to check if Wishart is sampling the log prob correctly. Pa…
njtierney Oct 16, 2024
1ca1dbd
fix bug with printing tf numeric error
njtierney Oct 27, 2024
01e04ca
helper function for testing to extract distribution name
njtierney Oct 27, 2024
3037aae
rename wishart test for log prob fubction returning NaNs. Add similar…
njtierney Oct 27, 2024
7d2f204
bulk changes from meetings to fix cholesky issues with wishart.
njtierney Oct 30, 2024
8ebb6f8
various pushes ti fix lkj distribution and also strangeness in wishar…
njtierney Oct 31, 2024
d40716a
Further fixes to wishart:
njtierney Oct 31, 2024
0634d16
minor changes to some tests
njtierney Oct 31, 2024
e557efa
Improvements to test_distributions_cholesky
njtierney Oct 31, 2024
2dff8b0
Removed our custom forward_log_det_jacobian function from tf_correlat…
njtierney Nov 1, 2024
5047b7a
note about some issues with LKJ and our normalisation constant for th…
njtierney Nov 1, 2024
0427e54
increase the number of n_effective samples for check_samples for lkj …
njtierney Nov 1, 2024
3256792
comment out LKJ tests purely to get a report back from CI on how gret…
njtierney Nov 1, 2024
f3d2a1b
refactor the geweke test to separate out the qqplot and KS test
njtierney Nov 1, 2024
a8e6143
turn on release check for bivariate normal
njtierney Nov 1, 2024
900ba51
add bijection density to choleskied distributions, and remove now-red…
goldingn Nov 1, 2024
99fdaf3
fix geweke test
goldingn Nov 1, 2024
3620d48
add thinning to Geweke tests
goldingn Nov 1, 2024
655c05e
don't run Geweke on CI
njtierney Nov 4, 2024
118ee26
news bump
njtierney Nov 6, 2024
80192ed
Merge pull request #734 from njtierney/tweaking-wishart-fix-from-729
njtierney Nov 6, 2024
5055a94
Remove unnecessary comments with #browser or #TF1/2
njtierney Nov 6, 2024
7dc5990
Add adaptive thinning to check_samples
njtierney Nov 6, 2024
c964891
remove now-not-needed environment variable setting for tests that use…
njtierney Nov 6, 2024
6d0f9fd
strike a compromise for #736
njtierney Nov 7, 2024
7d1f57e
Merge pull request #742 from njtierney/add-adaptive-thinning-735
njtierney Nov 7, 2024
cfdc095
Merge pull request #743 from njtierney/update-mcmc-seed-docs-736
njtierney Nov 7, 2024
130cdc0
add an explaining variable and remove some unused/unrequired comments
njtierney Nov 7, 2024
aab846d
Merge branch 'master' into prune-unused-code-738
njtierney Nov 7, 2024
2bc423e
remove some on_graph things
njtierney Nov 7, 2024
7ec5b0a
Merge pull request #741 from njtierney/prune-unused-code-738
njtierney Nov 7, 2024
a316609
update WORDLIST
njtierney Nov 8, 2024
efab18a
fix potential bug in print method for calculate
njtierney Nov 8, 2024
1092a05
Merge pull request #746 from njtierney/master
njtierney Nov 8, 2024
bc24f35
update Sysreqs in DESCRIPTION
njtierney Nov 8, 2024
d46a4b5
update cran-comments.md
njtierney Nov 8, 2024
74c6dae
update codemetar
njtierney Nov 8, 2024
dd1c5c7
add some missing skip_if_not(check_tf_version())
njtierney Nov 8, 2024
dccb313
update cran-comments about a 403 URL
njtierney Nov 8, 2024
20758de
use updated CITATION info
njtierney Nov 8, 2024
c32ce86
update CITATION file to use updated specifications now required by CRAN
njtierney Nov 9, 2024
ab25df3
update cran-comments
njtierney Nov 10, 2024
3797d53
Merge pull request #747 from njtierney/tweaks-for-0-5-0
njtierney Nov 10, 2024
c76bd22
use_dev_version(push = TRUE)
njtierney Nov 13, 2024
39ef12f
Merge pull request #750 from njtierney/finalise-0-5-0-release
njtierney Nov 13, 2024
b3a7adc
first attempt at a rather large git merge :scream:
njtierney Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions .EDIT_WEBSITE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document explains how [the greta website](https://greta-stats.org) is built

*greta* uses a customised [pkgdown](http://pkgdown.r-lib.org/) setup to build the greta website at [https://greta-stats.org](). This setup does not create the [greta forum](https://forum.greta-stats.org), which uses [discourse](https://www.discourse.org/) running on [a cloud server](https://www.digitalocean.com/docs/one-clicks/discourse/).

Due to [a small bug in pkgdown](https://github.com/r-lib/pkgdown/pull/834), the build currently only works with fork of the main pkgdown repo. You can install that version with:
The build currently only works with fork of the main pkgdown repo. You can install that version with:

```
devtools::install_github("goldingn/pkgdown@rmd_home_template")
Expand Down Expand Up @@ -80,7 +80,7 @@ If relevant, a level-4 header 'BUGS/JAGS code' and a (non-R) markdown code chunk
### Stan code
If relevant, a level-4 header 'Stan code' and an R code chunk (with chunk argument `echo=FALSE`) with an R command to read in the equivalent model from the [Stan example models repository](https://github.com/stan-dev/example-models). The chunk name must that differ from the other example models and end in `_stan`. The code block should be surrounded by an html `div` command defining the Stan code formatting.

###
###

Here's a template:
````
Expand Down Expand Up @@ -118,4 +118,3 @@ This should be saved as an .Rmd file with a meaningful name in the directory `in
```{r child='../inst/examples/my_example.Rmd'}
```
````

18 changes: 16 additions & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
^.github$
^.netlify$
^.lintr$
^.travis.yml$

^README\.md$
^CRAN-RELEASE$
^CODE_OF_CONDUCT\.md$
^\.EDIT_WEBSITE\.md$
^LICENSE$
^LICENSE\.md$
LICENSE
^cran-comments\.md$
^revdep$

^logos$
^paper$
Expand All @@ -36,3 +37,16 @@
^man/figures/main_icon\.png$
^man/figures/greta-header\.png$
^man/figures/logo\.png$
^\.github/workflows/R-CMD-check\.yaml$
^\.github$
^codecov\.yml$

^depends\.rds$
^CRAN-SUBMISSION$
^touchstone$
^.lazytest$
^\.lazytext$
^revdep$
^__autograph*
^testlog
^data-raw$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bug, create an associated issue and illustrate the bug with a minimal
### Pull request process

* We recommend that you create a Git branch for each pull request (PR).
* Look at the Travis and AppVeyor build status before and after making changes.
* Look at the Github actions build status before and after making changes.
The `README` should contain badges for any continuous integration services used
by the package.
* New code should follow the tidyverse [style guide](http://style.tidyverse.org).
Expand Down
117 changes: 117 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
- cron: '1 23 * * Sun'

name: R-CMD-check

defaults:
run:
shell: Rscript {0}

jobs:
R-CMD-check:
name: ${{ matrix.os }}, tf-${{ matrix.tf }}, R-${{ matrix.r}}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- {os: 'ubuntu-latest' , tf: 'default', r: 'release'}
- {os: 'windows-latest', tf: 'default', r: 'release'}
- {os: 'macOS-latest' , tf: 'default', r: 'release'}

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.tf == 'nightly' || contains(matrix.tf, 'rc') || matrix.r == 'devel' }}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: 'true'
R_COMPILE_AND_INSTALL_PACKAGES: 'never'
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:

- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
id: setup-r
with:
r-version: ${{ matrix.r }}
Ncpus: '2L'
use-public-rspm: true

- uses: r-lib/actions/setup-pandoc@v2

- name: Get Date
id: get-date
shell: bash
run: |
echo "::set-output name=year-week::$(date -u "+%Y-%U")"
echo "::set-output name=date::$(date -u "+%F")"

- name: Restore R package cache
uses: actions/cache@v2
id: r-package-cache
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ matrix.os }}-${{ steps.setup-r.outputs.installed-r-version }}-${{ steps.get-date.outputs.year-week }}-1

- name: Install remotes
if: steps.r-package-cache.outputs.cache-hit != 'true'
run: install.packages("remotes")

- name: Install system dependencies
if: runner.os == 'Linux'
shell: bash
run: |
. /etc/os-release
while read -r cmd
do
echo "$cmd"
sudo $cmd
done < <(Rscript -e "writeLines(remotes::system_requirements('$ID-$VERSION_ID'))")

- name: Install package + deps
run: remotes::install_local(dependencies = TRUE, force = TRUE)

- name: Install greta deps
run: |
library(greta)
greta::install_greta_deps(timeout = 50)

- name: Situation Report on greta install
run: greta::greta_sitrep()

- name: Install rcmdcheck
run: remotes::install_cran("rcmdcheck")

- name: Check
run: rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')

- name: Show testthat output
if: always()
shell: bash
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true

- name: Don't use tar from old Rtools to store the cache
if: ${{ runner.os == 'Windows' && startsWith(steps.install-r.outputs.installed-r-version, '3') }}
shell: bash
run: echo "C:/Program Files/Git/usr/bin" >> $GITHUB_PATH

- name: Check on single core machine
if: runner.os != 'Windows'
env:
R_PARALLELLY_AVAILABLE_CORES: 1
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-multiarch"))

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
59 changes: 59 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on:
push:
branches:
- main
- master

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-18.04
env:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
id: install-r

- uses: r-lib/actions/setup-pandoc@v2

- name: Install pak and query dependencies
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0}

- name: Restore R package cache
uses: actions/cache@v2
with:
path: |
${{ env.R_LIBS_USER }}/*
!${{ env.R_LIBS_USER }}/pak
key: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
pak::local_system_requirements(execute = TRUE)
pak::pkg_system_requirements("pkgdown", execute = TRUE)
shell: Rscript {0}

- name: Install dependencies
run: |
pak::local_install_dev_deps(upgrade = TRUE, dependencies = c("all", "Config/Needs/website"))
pak::pkg_install("goldingn/pkgdown@rmd_home_template")
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Build and deploy pkgdown site
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
79 changes: 79 additions & 0 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
issue_comment:
types: [created]

name: Commands

jobs:
document:
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }}
name: document
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2
needs: pr-document

- name: Document
run: roxygen2::roxygenise()
shell: Rscript {0}

- name: commit
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add man/\* NAMESPACE
git commit -m 'Document'

- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

style:
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/style') }}
name: style
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: r-lib/actions/setup-r@v2

- name: Install dependencies
run: install.packages("styler")
shell: Rscript {0}

- name: Style
run: styler::style_pkg()
shell: Rscript {0}

- name: commit
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add \*.R
git commit -m 'Style'

- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Loading