Skip to content

Update for v0.4.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d86efa3
fix typo and simplify summary output
simon-smart88 Jul 6, 2023
82b1ea8
alternative renaming aknandi/disaggregation#86
simon-smart88 Jun 25, 2024
6dfee7d
migrate from INLA to rSPDE aknandi/disaggregation#80
simon-smart88 Jun 25, 2024
2c88e04
rename parameters aknandi/disaggregation#83
simon-smart88 Jun 25, 2024
99f7865
More renaming of parameters aknandi/disaggregation#83
simon-smart88 Jun 25, 2024
7099b9e
Deprecate newdata > new_data and fix confidence > credible aknandi/di…
simon-smart88 Jun 25, 2024
d2bef80
remove deprecated fit_model
simon-smart88 Jun 25, 2024
297fe91
rename as.disag_data items aknandi/disaggregation#83
simon-smart88 Jun 25, 2024
061f901
spin out plot_disag_model_data
simon-smart88 Jun 25, 2024
2054bcc
fix typo
simon-smart88 Jun 27, 2024
45ee57e
change models to ensure that they fit
simon-smart88 Jun 27, 2024
de1e977
newdata > new_data
simon-smart88 Jun 27, 2024
6e64a49
fix docs and import .data
simon-smart88 Jun 27, 2024
853aa70
move result to helper_data
simon-smart88 Jun 27, 2024
52fa600
add missing .data$
simon-smart88 Jun 27, 2024
6d11608
Update R-CMD-check.yaml
simon-smart88 Jun 27, 2024
fb8eb1c
Update R-CMD-build.yaml
simon-smart88 Jun 27, 2024
e57af27
remove INLA from workflows
simon-smart88 Jun 28, 2024
52555c2
bump to ubuntu-24.04
simon-smart88 Jun 28, 2024
7a0b24c
update to run without warnings
simon-smart88 Jun 28, 2024
09652e3
update description and gitignore, delete plots
simon-smart88 Jun 28, 2024
b56417b
Merge branch 'master' of https://github.com/simon-smart88/disaggregation
simon-smart88 Jun 28, 2024
b8ba41c
merge update
simon-smart88 Jun 28, 2024
12ffddb
error > perror
simon-smart88 Jul 1, 2024
1f78ffb
explicitly install gdal and proj
simon-smart88 Jul 1, 2024
82fb6b2
explicitly install gdal and proj
simon-smart88 Jul 1, 2024
d69d9f1
Merge branch 'master' of https://github.com/simon-smart88/disaggregation
simon-smart88 Jul 1, 2024
9347f1e
remove errant raster function
simon-smart88 Jul 1, 2024
764b34a
n_covariates as.integer
simon-smart88 Jul 1, 2024
cb0b718
not needed now no longer depedent on INLA
simon-smart88 Jul 1, 2024
d5d2232
remove erroneous line
simon-smart88 Jul 1, 2024
6bb26df
update inspired by sf
simon-smart88 Jul 1, 2024
65f536c
rename slope parameters and update tests
simon-smart88 Jul 31, 2024
e769822
rename slope parameters and update tests
simon-smart88 Sep 10, 2024
bd42286
warn if covariates are not numeric aknandi #91
simon-smart88 Sep 13, 2024
6b0d9d7
try to force noRemap error
simon-smart88 Sep 24, 2024
038290c
error > Rf_error to try and fix noRemap error
simon-smart88 Sep 24, 2024
a84a3b5
Plot predictions with and without IID effect aknandi#68
simon-smart88 Sep 24, 2024
a2d7ed7
fix docs and improve consistency in point colour
simon-smart88 Sep 26, 2024
cfa0a32
remove .data
simon-smart88 Sep 26, 2024
4918965
deal with cases where polygons have zero aggregation values aknandi#92
simon-smart88 Sep 30, 2024
e9142f8
list names of priors in disag_model docs aknandi#85
simon-smart88 Sep 30, 2024
dcc19e2
Merge branch 'master' of https://github.com/simon-smart88/disaggregation
simon-smart88 Sep 30, 2024
5ea89ef
cut > cutoff resolves aknandi#94
simon-smart88 Oct 1, 2024
01348d4
update README and docs
simon-smart88 Oct 2, 2024
0e0dcc4
fix undefined variables NOTE and update vignette
simon-smart88 Oct 2, 2024
d9e31a6
fix geom_point, add labels, add test
simon-smart88 Oct 2, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
on:
push:
branches:
'build'
'build'
pull_request:
branches:
- master
Expand Down Expand Up @@ -40,7 +40,6 @@ jobs:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
extra-repositories: "https://inla.r-inla-download.org/R/testing"

- name: Install system dependencies on MacOS (X11, gdal)
if: runner.os == 'macOS'
Expand All @@ -54,6 +53,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update -y && sudo apt-get install -y libglu1-mesa-dev
sudo apt-get install -y libproj-dev gdal-bin

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
114 changes: 56 additions & 58 deletions .github/workflows/R-CMD-check-HTML5.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,56 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches: [html5]
pull_request:
branches: [html5]

name: R-CMD-check-html5


jobs:
HTML5-check:
runs-on: ubuntu-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
extra-repositories: "https://inla.r-inla-download.org/R/stable"


- name: Install pdflatex
run: sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra

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

- name: Install system dependencies on MacOS (X11, gdal)
if: runner.os == 'macOS'
run: |
brew install --cask xquartz
brew install pkg-config
brew install proj@8
brew install gdal

- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: '"all"'
extra-packages: |
rcmdcheck

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
args: '"--as-cran"'
build_args: 'character()'
#error-on: '"note"'
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches: [html5]
pull_request:
branches: [html5]

name: R-CMD-check-html5


jobs:
HTML5-check:
runs-on: ubuntu-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- name: Install pdflatex
run: sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra

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

- name: Install system dependencies on MacOS (X11, gdal)
if: runner.os == 'macOS'
run: |
brew install --cask xquartz
brew install pkg-config
brew install proj@8
brew install gdal

- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: '"all"'
extra-packages: |
rcmdcheck

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
args: '"--as-cran"'
build_args: 'character()'
#error-on: '"note"'
96 changes: 0 additions & 96 deletions .github/workflows/R-CMD-check-no-suggests.yaml

This file was deleted.

31 changes: 12 additions & 19 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions

# inspired by: https://github.com/r-spatial/sf/blob/main/.github/workflows/R-CMD-check.yaml
on:
push:
branches:
'**'
'**'
pull_request:
branches:
- devel
Expand All @@ -21,23 +23,22 @@ jobs:
fail-fast: false
matrix:
config:
# - {os: windows-latest, r: 'release'}
# - {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
extra-repositories: "https://inla.r-inla-download.org/R/stable"

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

Expand All @@ -46,21 +47,13 @@ jobs:
run: |
brew install --cask xquartz
brew install pkg-config
brew install proj@8
brew install proj
brew install gdal

- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: '"all"'
extra-packages: |
rcmdcheck

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
env:
Expand Down
22 changes: 11 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
inst/doc
.Rproj.user
.Rhistory
.Rproj
.RData
*.o
*.so
vignettes/disaggregation_cache/*
vignettes/disaggregation_files/*
.github/workflows/R-CMD-check-HTML5.archyaml
vignettes/spatio_temporal_disaggregation.Rmd
inst/doc
.Rproj.user
.Rhistory
*.Rproj
.RData
*.o
*.so
vignettes/disaggregation_cache/*
vignettes/disaggregation_files/*
.github/workflows/R-CMD-check-HTML5.archyaml
vignettes/spatio_temporal_disaggregation.Rmd
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: disaggregation
Type: Package
Title: Disaggregation Modelling
Version: 0.3.0
Version: 0.4.0
Authors@R: c(
person("Anita", "Nandi", email = "anita.k.nandi@gmail.com", role = "aut", comment = c(ORCID = "0000-0002-5087-2494")),
person("Tim", "Lucas", email = "timcdlucas@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-4694-8107")),
Expand All @@ -17,7 +17,7 @@ Description: Fits disaggregation regression models using 'TMB' ('Template Model
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Imports:
splancs,
Matrix,
Expand All @@ -26,16 +26,15 @@ Imports:
dplyr,
ggplot2,
cowplot,
rSPDE,
sparseMVN,
fmesher,
tidyterra,
terra,
sf,
utils
Additional_repositories: https://inla.r-inla-download.org/R/stable
Suggests:
testthat,
INLA,
knitr,
rmarkdown,
SpatialEpi
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ S3method(summary,disag_prediction)
export(as.disag_data)
export(build_mesh)
export(disag_model)
export(fit_model)
export(getCovariateRasters)
export(getPolygonData)
export(getStartendindex)
export(make_model_object)
export(plot_disag_model_data)
export(predict_model)
export(predict_uncertainty)
export(prepare_data)
Expand Down
Loading
Loading