Skip to content

Commit be8855e

Browse files
committed
v1.5.0
1 parent 225f1a7 commit be8855e

File tree

11 files changed

+33
-47
lines changed

11 files changed

+33
-47
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: sgsR
22
Type: Package
3-
Version: 1.4.5
3+
Version: 1.5.0
44
License: GPL (>= 3)
55
Title: Structurally Guided Sampling
66
Authors@R: c(
@@ -61,5 +61,5 @@ Config/testthat/edition: 3
6161
Config/testthat/parallel: true
6262
Encoding: UTF-8
6363
LazyData: true
64-
RoxygenNote: 7.3.1
64+
RoxygenNote: 7.3.2
6565
Language: en-US

NEWS.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
# sgsR 1.5.0
2+
3+
`fixed` - Updated `ggplot2` `plot$labels` field based. From teunbrand #36
4+
5+
`fixed` - Updated parameter `filename` for `sample_nc()` and others to correctly indicate the function outputs samples and not a raster layer. From StumWhere #36
6+
17
# sgsR 1.4.5
28

39
`fixed` - `sample_balanced()` & `sample_existing_balanded` - Updated to match `BalancedSampling v2.0.6` changes to `lcubsestratified`. Thanks to Anton Grafström.
410

5-
`fixed` - `sample_nc()` - Updated parameter `filename` to correctly indicate the function outputs samples and not a raster layer. From StumWhere #36
6-
711
# sgsR 1.4.4
812

913
`fixed` - `sample_strat()` - Was not taking samples from other strata into account when calculating `mindist` between sample units. This has now been corrected for both `Queinnec` and `random` methods. From Tommasso Trotto #33

R/sample_systematic.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ sample_systematic <- function(raster,
148148

149149
#--- spin pol and get extent for grid making to cover entire raster ---#
150150

151-
se <- terra::spin(pol, randRot) |> terra::ext()
151+
se <- terra::spin(pol, randRot) %>% terra::ext()
152152

153153
#--- create grid based on outer extents of randomly translated raster extent ---#
154154

README.Rmd

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,8 @@ names <- c("Martin Queinnec", "Joanne C. White", "Piotr Tompalski", "Andrew T. H
9292
9393
aff <- c("University of British Columbia", "Canadian Forest Service", "Canadian Forest Service", "United States Forest Service", "Swedish University of Agricultural Sciences", "Ministère des Forêts, de la Faune et des Parcs", "Ministry of Northern Development, Mines, Natural Resources and Forestry", "Forsite Consultants Ltd.", "Université de Sherbrooke", " (Retired) Ministry of Northern Development, Mines, Natural Resources and Forestry")
9494
95-
urls <- c(
96-
"https://www.researchgate.net/profile/Martin-Queinnec",
97-
"https://scholar.google.ca/citations?user=bqjk4skAAAAJ&hl=en/",
98-
"https://scholar.google.ca/citations?user=RtYdz0cAAAAJ&hl=en/",
99-
"https://www.fs.usda.gov/research/about/people/ahudak/",
100-
"https://scholar.google.com/citations?user=Nx336TQAAAAJ&hl=en/",
101-
"https://scholar.google.com/citations?user=wGsKOK8AAAAJ&hl=en/",
102-
"https://ca.linkedin.com/in/ian-sinclair-984929a4/",
103-
"https://www.signalhire.com/profiles/grant-mccartney%27s-email/99719223/",
104-
"https://www.researchgate.net/scientific-contributions/Jean-Francois-Prieur-2142960944",
105-
"https://www.researchgate.net/profile/Murray-Woods"
106-
)
107-
10895
df <- data.frame(Collaborator = names, Affiliation = aff)
10996
110-
111-
df$Collaborator <- paste0("[", df$Collaborator, "](", urls, ")")
112-
11397
kable(df)
11498
```
11599

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ To cite `sgsR` use `citation()` from within R with:
4141

4242
``` r
4343
print(citation("sgsR"), bibtex = TRUE)
44-
#>
4544
#> To cite package 'sgsR' in publications use:
4645
#>
4746
#> Goodbody, TRH., Coops, NC., Queinnec, M., White, JC., Tompalski, P.,
@@ -61,17 +60,17 @@ print(citation("sgsR"), bibtex = TRUE)
6160
#> doi = {10.1093/forestry/cpac055},
6261
#> }
6362
#>
64-
#> Tristan RH Goodbody, Nicholas C Coops and Martin Queinnec (2023).
65-
#> Structurally Guided Sampling. R package version 1.4.4.
63+
#> Tristan RH Goodbody, Nicholas C Coops and Martin Queinnec (2025).
64+
#> Structurally Guided Sampling. R package version 1.4.6.
6665
#> https://cran.r-project.org/package=sgsR.
6766
#>
6867
#> A BibTeX entry for LaTeX users is
6968
#>
7069
#> @Manual{,
7170
#> title = {Structurally Guided Sampling},
7271
#> author = {Tristan RH Goodbody and Nicholas C Coops and Martin Queinnec},
73-
#> year = {2023},
74-
#> note = {R package version 1.4.4},
72+
#> year = {2025},
73+
#> note = {R package version 1.4.6},
7574
#> url = {https://cran.r-project.org/package=sgsR},
7675
#> }
7776
```
@@ -128,18 +127,18 @@ We are thankful for continued collaboration with academic, private
128127
industry, and government institutions to help improve `sgsR`. Special
129128
thanks to to:
130129

131-
| Collaborator | Affiliation |
132-
|:--------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
133-
| [Martin Queinnec](https://www.researchgate.net/profile/Martin-Queinnec) | University of British Columbia |
134-
| [Joanne C. White](https://scholar.google.ca/citations?user=bqjk4skAAAAJ&hl=en/) | Canadian Forest Service |
135-
| [Piotr Tompalski](https://scholar.google.ca/citations?user=RtYdz0cAAAAJ&hl=en/) | Canadian Forest Service |
136-
| [Andrew T. Hudak](https://www.fs.usda.gov/research/about/people/ahudak/) | United States Forest Service |
137-
| [Ruben Valbuena](https://scholar.google.com/citations?user=Nx336TQAAAAJ&hl=en/) | Swedish University of Agricultural Sciences |
138-
| [Antoine LeBoeuf](https://scholar.google.com/citations?user=wGsKOK8AAAAJ&hl=en/) | Ministère des Forêts, de la Faune et des Parcs |
139-
| [Ian Sinclair](https://ca.linkedin.com/in/ian-sinclair-984929a4/) | Ministry of Northern Development, Mines, Natural Resources and Forestry |
140-
| [Grant McCartney](https://www.signalhire.com/profiles/grant-mccartney%27s-email/99719223/) | Forsite Consultants Ltd. |
141-
| [Jean-Francois Prieur](https://www.researchgate.net/scientific-contributions/Jean-Francois-Prieur-2142960944) | Université de Sherbrooke |
142-
| [Murray Woods](https://www.researchgate.net/profile/Murray-Woods) | (Retired) Ministry of Northern Development, Mines, Natural Resources and Forestry |
130+
| Collaborator | Affiliation |
131+
|:---|:---|
132+
| Martin Queinnec | University of British Columbia |
133+
| Joanne C. White | Canadian Forest Service |
134+
| Piotr Tompalski | Canadian Forest Service |
135+
| Andrew T. Hudak | United States Forest Service |
136+
| Ruben Valbuena | Swedish University of Agricultural Sciences |
137+
| Antoine LeBoeuf | Ministère des Forêts, de la Faune et des Parcs |
138+
| Ian Sinclair | Ministry of Northern Development, Mines, Natural Resources and Forestry |
139+
| Grant McCartney | Forsite Consultants Ltd. |
140+
| Jean-Francois Prieur | Université de Sherbrooke |
141+
| Murray Woods | (Retired) Ministry of Northern Development, Mines, Natural Resources and Forestry |
143142

144143
## Funding :raised_hands:
145144

inst/WORDLIST

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ CRC
1212
CRS
1313
Centre's
1414
Centre’s
15-
Centroid
1615
Codecov
1716
DOI
1817
Faune
@@ -22,7 +21,6 @@ Forsite
2221
Forêts
2322
Geosciences
2423
Github
25-
Grafstrom
2624
Grafström
2725
Gregoire
2826
Hijmans
@@ -61,6 +59,7 @@ SpatRaster
6159
SpatialPointsDataFrame
6260
Spatraster
6361
Springer
62+
StumWhere
6463
Tommaso
6564
Tommasso
6665
Tompalski
@@ -79,8 +78,6 @@ balancedsampling
7978
boreal
8079
cLHS
8180
cellsize
82-
centroid
83-
centroids
8481
clhs
8582
colour
8683
coloured
@@ -129,6 +126,7 @@ srasters
129126
stratifications
130127
subsampled
131128
tesselations
129+
teunbrand
132130
th
133131
tibble
134132
underreprented

man/sample_balanced.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/sample_existing_balanced.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/sample_nc.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sgsR.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: a61c6539-9873-4095-9eb6-3b2c496b9fbd
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

0 commit comments

Comments
 (0)