Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f38d3f7
disambiguate array for new RcppEigen
James-Thorson-NOAA Jul 1, 2026
28a5d9e
update tinyVAST@dev version and NEWS
James-Thorson-NOAA Jul 1, 2026
7402f4b
move functions to utils.h
James-Thorson-NOAA Jul 1, 2026
3064348
Update rhub.yaml
James-Thorson-NOAA Jul 10, 2026
25f1bbf
Delete rhub.yaml
James-Thorson-NOAA Jul 10, 2026
941f3f8
Create rhub.yaml
James-Thorson-NOAA Jul 10, 2026
0739004
remove dsem check from CRAN
James-Thorson-NOAA Jul 10, 2026
892637f
stage for CRAN update
James-Thorson-NOAA Jul 13, 2026
542564e
updates to tests
James-Thorson-NOAA Jul 13, 2026
c4e8fe6
Update test-basic-fits.R
James-Thorson-NOAA Jul 13, 2026
4b88f38
attempt fix for compiler complexity errors
James-Thorson-NOAA Jul 13, 2026
9116120
Update utils.h
James-Thorson-NOAA Jul 13, 2026
c48d575
further pass-by-const-reference
James-Thorson-NOAA Jul 13, 2026
257e7a0
try reverting utils.hpp
James-Thorson-NOAA Jul 13, 2026
0f7fd85
re-add tinyVAST namespace
James-Thorson-NOAA Jul 14, 2026
0e16a65
add more pass-by-const-reference
James-Thorson-NOAA Jul 14, 2026
ba12db2
Update R-CMD-check.yaml
James-Thorson-NOAA Jul 14, 2026
bffa0ab
Model fitting speed ups (#140)
seananderson Oct 7, 2026
61f072a
add faster cAIC
James-Thorson Oct 20, 2026
f11c65b
update ref for cAIC
James-Thorson Oct 20, 2026
6960bce
fix typo in last commit
James-Thorson Oct 20, 2026
ebeb51b
add what = "EDF" option to cAIC(.)
James-Thorson Nov 15, 2026
e51f3a6
Merge branch 'dev' of https://github.com/vast-lib/tinyVAST into dev
James-Thorson-NOAA Nov 21, 2026
3389d80
make CRAN checks happy
James-Thorson-NOAA Nov 21, 2026
40533a5
try fixing test-coverage.yaml
James-Thorson-NOAA Nov 21, 2026
76eb50e
improve cAIC by using spHess(random=TRUE)
James-Thorson-NOAA Nov 21, 2026
358a512
try fixing pkgdown actions
James-Thorson-NOAA Nov 21, 2026
f7574e1
try again: fixing pggkdown.yaml
James-Thorson-NOAA Nov 21, 2026
31622f2
fix NOTE in CRAN check
James-Thorson-NOAA Nov 21, 2026
74c2c39
fix CI R_CMD_check
James-Thorson-NOAA Nov 21, 2026
775638b
try again to fix pkgdown action
James-Thorson-NOAA Nov 21, 2026
f4bcc21
try fixing san-check.yaml
James-Thorson-NOAA Nov 21, 2026
fdf50fa
make CI R_CMD_check happy
James-Thorson-NOAA Nov 21, 2026
dcb1bde
try again to fix sanitizer Action
James-Thorson-NOAA Nov 21, 2026
92c41f3
try once again to fix san-check.yaml
James-Thorson-NOAA Nov 21, 2026
0697e5b
add CI test for cAIC
James-Thorson Nov 21, 2026
bf04d8c
prep for CRAN upload
James-Thorson Nov 21, 2026
f7efd0f
make CRAN check happy
James-Thorson Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,34 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

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

- name: Install dependencies Ubuntu
if: runner.os == 'Linux'
run: |
install.packages('remotes')
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("knitr")
remotes::install_cran("rmarkdown")
remotes::install_cran("rcmdcheck")
install.packages("Matrix", type = "source")
install.packages("TMB", type = "source")
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
cache-version: 2

- name: Reinstall TMB/Matrix from source
run: |
install.packages(c("Matrix", "TMB"), type = "source")
shell: Rscript {0}

- name: Check systemfonts
run: |
print(.libPaths())
print(find.package("systemfonts"))
print(packageVersion("systemfonts"))
shell: Rscript {0}

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
run: pkgdown::build_site_github_pages(new_process = TRUE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
Expand All @@ -57,4 +58,4 @@ jobs:
with:
clean: false
branch: gh-pages
folder: docs
folder: docs
35 changes: 31 additions & 4 deletions .github/workflows/san-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,41 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Show compiler configuration
run: |
for v in CXX CXX17 CXX17FLAGS CXX17STD CXXFLAGS LDFLAGS; do
echo "$v = $(R CMD config $v)"
done

- name: Compile dependencies against libstdc++ (matches system GDAL)
run: |
mkdir -p ~/.R
: > ~/.R/Makevars
strip_stdlib() { sed -e 's/-stdlib=[A-Za-z+]*//g'; }
for s in "" 11 14 17 20; do
cxx=$(R CMD config CXX$s 2>/dev/null | strip_stdlib || true)
flags=$(R CMD config CXX${s}FLAGS 2>/dev/null | strip_stdlib || true)
if [ -n "$cxx" ]; then
echo "CXX$s = $cxx -stdlib=libstdc++" >> ~/.R/Makevars
echo "CXX${s}FLAGS = $flags" >> ~/.R/Makevars
fi
done
echo "LDFLAGS = $(R CMD config LDFLAGS | strip_stdlib)" >> ~/.R/Makevars
echo "---- ~/.R/Makevars ----"
cat ~/.R/Makevars

- name: Install dependencies
run: |
R -q -e 'install.packages("pak")'
R -q -e 'pak::pkg_install(c("local::.", "rcmdcheck", "knitr", "rmarkdown", "AER", "MARSS", "testthat", "RANN"))'
# R -q -e 'pak::pkg_install(c("phylopath", "reshape", "dynlm", "ggpubr", "vars", "DHARMa"))' # Oher SUGGESTS packages

- name: Run check
- name: Check that sf loads
run: |
# R -q -e 'rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-vignettes", "--no-build-vignettes", "--no-examples", "--no-tests"), build_args = c("--no-build-vignettes", "--no-build-vignettes"), error_on = "error")'
R -q -e 'rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-vignettes", "--no-build-vignettes"), build_args = c("--no-build-vignettes", "--no-build-vignettes"), error_on = "error")'
R -q -e 'library(sf); print(sf::sf_extSoftVersion())'

- name: Restore sanitizer compiler settings
run: rm -f ~/.R/Makevars

- name: Run check
run: |
R -q -e 'rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-vignettes", "--no-build-vignettes"), build_args = c("--no-build-vignettes", "--no-build-vignettes"), error_on = "error")'
4 changes: 3 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
Expand All @@ -59,4 +61,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
path: ${{ runner.temp }}/package
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ inst/doc
docs
*.pdf
*.Rhistory
scratch/*.tar.gz
vignettes\.Rhistory
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: tinyVAST
Title: Multivariate Spatio-Temporal Models using Structural Equations
Version: 1.6.3
Date: 2026-09-19
Version: 1.6.4
Date: 2026-11-21
Authors@R: c(
person(c("James", "T."), "Thorson", , "James.Thorson@noaa.gov",
role = c("aut", "cre"),
Expand Down Expand Up @@ -41,11 +41,11 @@ Imports:
dsem (>= 3.0.0),
insight,
cv,
sparseinv,
gstat,
cli,
GpGp,
GPvecchia
GPvecchia,
sparseinv
Suggests:
ggplot2,
knitr,
Expand Down Expand Up @@ -77,4 +77,4 @@ LazyDataCompression: xz
Roxygen: list(markdown = TRUE)
URL: https://vast-lib.github.io/tinyVAST/
BugReports: https://github.com/vast-lib/tinyVAST/issues/
Config/roxygen2/version: 8.0.0
Config/roxygen2/version: 8.1.1
192 changes: 110 additions & 82 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -45,91 +45,119 @@ export(tweedie)
import(methods)
importFrom(GPvecchia,order_maxmin_exact)
importFrom(GpGp,find_ordered_nn)
importFrom(Matrix,Cholesky)
importFrom(Matrix,Diagonal)
importFrom(Matrix,Matrix)
importFrom(Matrix,diag)
importFrom(Matrix,mat2triplet)
importFrom(Matrix,rowSums)
importFrom(Matrix,solve)
importFrom(Matrix,sparseMatrix)
importFrom(Matrix,t)
importFrom(TMB,MakeADFun)
importFrom(TMB,config)
importFrom(TMB,runSymbolicAnalysis)
importFrom(TMB,sdreport)
importFrom(Matrix,
Cholesky,
Diagonal,
Matrix,
diag,
mat2triplet,
rowSums,
solve,
sparseMatrix,
t
)
importFrom(TMB,
MakeADFun,
config,
runSymbolicAnalysis,
sdreport
)
importFrom(abind,abind)
importFrom(checkmate,assertClass)
importFrom(checkmate,assertDataFrame)
importFrom(checkmate,assertInteger)
importFrom(checkmate,assertNumeric)
importFrom(cli,cli_abort)
importFrom(cli,cli_alert_danger)
importFrom(cli,cli_alert_info)
importFrom(cli,cli_alert_success)
importFrom(cli,cli_inform)
importFrom(cli,cli_warn)
importFrom(checkmate,
assertClass,
assertDataFrame,
assertInteger,
assertNumeric
)
importFrom(cli,
cli_abort,
cli_alert_danger,
cli_alert_info,
cli_alert_success,
cli_inform,
cli_warn
)
importFrom(corpcor,pseudoinverse)
importFrom(cv,GetResponse)
importFrom(cv,cv)
importFrom(cv,
GetResponse,
cv
)
importFrom(dsem,make_matrices)
importFrom(fmesher,fm_evaluator)
importFrom(fmesher,fm_fem)
importFrom(fmesher,fm_mesh_2d)
importFrom(igraph,as_adjacency_matrix)
importFrom(igraph,ecount)
importFrom(insight,get_data)
importFrom(insight,get_response)
importFrom(methods,as)
importFrom(methods,is)
importFrom(sdmTMB,lognormal)
importFrom(sdmTMB,nbinom1)
importFrom(sdmTMB,nbinom2)
importFrom(sdmTMB,student)
importFrom(sdmTMB,tweedie)
importFrom(sf,st_as_sf)
importFrom(sf,st_centroid)
importFrom(sf,st_coordinates)
importFrom(sf,st_crs)
importFrom(sf,st_distance)
importFrom(sf,st_geometry)
importFrom(sf,st_geometry_type)
importFrom(sf,st_length)
importFrom(sf,st_nearest_feature)
importFrom(sf,st_relate)
importFrom(sf,st_within)
importFrom(fmesher,
fm_evaluator,
fm_fem,
fm_mesh_2d
)
importFrom(igraph,
as_adjacency_matrix,
ecount
)
importFrom(insight,
get_data,
get_response
)
importFrom(methods,
as,
is
)
importFrom(sdmTMB,
lognormal,
nbinom1,
nbinom2,
student,
tweedie
)
importFrom(sf,
st_as_sf,
st_centroid,
st_coordinates,
st_crs,
st_distance,
st_geometry,
st_geometry_type,
st_length,
st_nearest_feature,
st_relate,
st_within
)
importFrom(sfnetworks,activate)
importFrom(sparseinv,Takahashi_Davis)
importFrom(sparseinv,cholPermute)
importFrom(stats,.getXlevels)
importFrom(stats,Gamma)
importFrom(stats,as.formula)
importFrom(stats,binomial)
importFrom(stats,dist)
importFrom(stats,fitted)
importFrom(stats,gaussian)
importFrom(stats,lm)
importFrom(stats,logLik)
importFrom(stats,model.frame)
importFrom(stats,model.matrix)
importFrom(stats,model.offset)
importFrom(stats,model.response)
importFrom(stats,na.omit)
importFrom(stats,na.pass)
importFrom(stats,nlminb)
importFrom(stats,optim)
importFrom(stats,optimHess)
importFrom(stats,pnorm)
importFrom(stats,poisson)
importFrom(stats,predict)
importFrom(stats,rnorm)
importFrom(stats,sd)
importFrom(stats,simulate)
importFrom(stats,terms)
importFrom(stats,update)
importFrom(stats,update.formula)
importFrom(stats,vcov)
importFrom(sparseinv,
Takahashi_Davis,
cholPermute
)
importFrom(stats,
.getXlevels,
Gamma,
as.formula,
binomial,
dist,
fitted,
gaussian,
lm,
logLik,
model.frame,
model.matrix,
model.offset,
model.response,
na.omit,
na.pass,
nlminb,
optim,
optimHess,
pnorm,
poisson,
predict,
rnorm,
sd,
simulate,
terms,
update,
update.formula,
vcov
)
importFrom(units,drop_units)
importFrom(utils,capture.output)
importFrom(utils,packageVersion)
importFrom(utils,
capture.output,
packageVersion
)
useDynLib(tinyVAST, .registration = TRUE)
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# tinyVAST 1.6.3.9999

* Add an experimental option for cAIC to avoid constructing a dense matrix prior to extracting its diagonal using sparseinv::Takahashi_Davis, and use spHess(random=TRUE) to efficiently access sparse Hessians
* Add what = "EDF" option to cAIC(.)
* Remove ti and te mgcv tests from CRAN
* Speed up `project` by adding argument `nsim` and using more efficient linear algebra
* Speed up TMB code on C++ side, e.g., by making DATA_UPDATE optional, making weights_i optional, using SCALE for scaling a precision matrix, and other smaller improvements

# tinyVAST 1.6.3

* Move most vignettes to web_only vignettes directory, and update interface for visreg in mgcv.Rmd vignette
Expand Down
Loading
Loading