Skip to content

Commit 52e1044

Browse files
authored
Merge pull request #78 from SpatLyu/dev
use safer namespace loading strategy
2 parents 101b864 + 72e6e61 commit 52e1044

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

R/zzz.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.onLoad = function(...) {
2-
if (requireNamespace("Rcpp", quietly = TRUE)) loadNamespace("Rcpp")
1+
.onLoad = \(...) {
2+
requireNamespace("Rcpp", quietly = TRUE)
33
}

vignettes/surd.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: "Synergistic-Unique-Redundant Decomposition of Causality (SURD)"
33
author: "Wenbo Lyu"
44
date: |
5-
| Last update: 2026-03-30
6-
| Last run: 2026-03-30
5+
| Last update: 2026-05-05
6+
| Last run: 2026-05-05
77
output: rmarkdown::html_vignette
88
vignette: >
99
%\VignetteIndexEntry{surd}
@@ -188,8 +188,8 @@ utils_plot_surd(res_cvds)
188188

189189
``` r
190190
popd_nb = spdep::read.gal(system.file("case/popd_nb.gal",package = "spEDM"))
191-
## Warning in spdep::read.gal(system.file("case/popd_nb.gal", package = "spEDM")): neighbour
192-
## object has 4 sub-graphs
191+
## Warning in spdep::read.gal(system.file("case/popd_nb.gal", package = "spEDM")): neighbour object has 4
192+
## sub-graphs
193193
popd = readr::read_csv(system.file("case/popd.csv",package = "spEDM"))
194194
popd_sf = sf::st_as_sf(popd, coords = c("lon","lat"), crs = 4326)
195195
popd_sf
@@ -302,3 +302,4 @@ utils_plot_surd(res_npp)
302302
* [`?infoxtr::surd()`](https://stscl.github.io/infoxtr/reference/surd.html) for function details.
303303
* [`spEDM`](https://cran.r-project.org/package=spEDM) package for spatial empirical dynamic modeling.
304304
* [`tEDM`](https://cran.r-project.org/package=tEDM) package for temporal empirical dynamic modeling.
305+
* [`pc`](https://cran.r-project.org/package=pc) package for pattern causality analysis.

vignettes/surd.Rmd.orig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Synergistic-Unique-Redundant Decomposition of Causality (SURD)"
33
author: "Wenbo Lyu"
44
date: |
5-
| Last update: 2026-03-30
5+
| Last update: 2026-05-05
66
| Last run: `r Sys.Date()`
77
output: rmarkdown::html_vignette
88
vignette: >
@@ -192,3 +192,4 @@ utils_plot_surd(res_npp)
192192
* [`?infoxtr::surd()`](https://stscl.github.io/infoxtr/reference/surd.html) for function details.
193193
* [`spEDM`](https://cran.r-project.org/package=spEDM) package for spatial empirical dynamic modeling.
194194
* [`tEDM`](https://cran.r-project.org/package=tEDM) package for temporal empirical dynamic modeling.
195+
* [`pc`](https://cran.r-project.org/package=pc) package for pattern causality analysis.

0 commit comments

Comments
 (0)