Skip to content

Commit 73659ee

Browse files
committed
Merged origin/main into read-arrow
2 parents 6ba5cd2 + 9b32d75 commit 73659ee

10 files changed

Lines changed: 26 additions & 9 deletions

File tree

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ message: 'To cite package "fluxnet" in publications use:'
88
type: software
99
license: MIT
1010
title: 'fluxnet: Download, Read, and Visualize FLUXNET Data'
11-
version: 0.3.1
11+
version: 0.3.2
1212
doi: 10.5281/zenodo.19210221
1313
abstract: Utility functions to help download, read in, and work with data from FLUXNET.
1414
authors:
@@ -21,7 +21,7 @@ authors:
2121
orcid: https://orcid.org/0000-0002-6462-3288
2222
repository-code: https://github.com/EcosystemEcologyLab/fluxnet-package
2323
url: https://ecosystemecologylab.github.io/fluxnet-package/
24-
date-released: '2026-05-05'
24+
date-released: '2026-05-07'
2525
contact:
2626
- family-names: Scott
2727
given-names: Eric R.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: fluxnet
22
Title: Download, Read, and Visualize FLUXNET Data
3-
Version: 0.3.1.9000
3+
Version: 0.3.2.9000
44
Authors@R: c(
55
person(c("Eric", "R."), "Scott", , "ericrscott@arizona.edu", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-7430-7879")),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# fluxnet (development version)
22

3+
# fluxnet 0.3.2
4+
5+
* Fixes a bug introduced in 0.3.1 when more than one site id is provided to `site_ids`.
6+
37
# fluxnet 0.3.1
48

59
* `site_ids = "all"` is deprecated in favor of `site_ids = NULL` in all functions with this argument.

R/flux_badm.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ flux_badm <- function(
3232
)
3333
) {
3434
if (!is.null(site_ids)) {
35-
if (site_ids == "all") {
35+
if (any(site_ids == "all")) {
3636
cli::cli_warn(
3737
"Setting {.arg site_ids = 'all'} is deprecated. Using {.arg site_ids = NULL} instead."
3838
)

R/flux_download.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ flux_download <- function(
5353
...
5454
) {
5555
if (!is.null(site_ids)) {
56-
if (site_ids == "all") {
56+
if (any(site_ids == "all")) {
5757
cli::cli_warn(
5858
"Setting {.arg site_ids = 'all'} is deprecated. Using {.arg site_ids = NULL} instead."
5959
)

R/flux_extract.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ flux_extract <- function(
4848
overwrite = FALSE
4949
) {
5050
if (!is.null(site_ids)) {
51-
if (site_ids == "all") {
51+
if (any(site_ids == "all")) {
5252
cli::cli_warn(
5353
"Setting {.arg site_ids = 'all'} is deprecated. Using {.arg site_ids = NULL} instead."
5454
)

R/flux_read.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ flux_read <- function(
4949
site_ids = NULL
5050
) {
5151
if (!is.null(site_ids)) {
52-
if (site_ids == "all") {
52+
if (any(site_ids == "all")) {
5353
cli::cli_warn(
5454
"Setting {.arg site_ids = 'all'} is deprecated. Using {.arg site_ids = NULL} instead."
5555
)

R/flux_varinfo.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ flux_varinfo <- function(
3838
site_ids = NULL
3939
) {
4040
if (!is.null(site_ids)) {
41-
if (site_ids == "all") {
41+
if (any(site_ids == "all")) {
4242
cli::cli_warn(
4343
"Setting {.arg site_ids = 'all'} is deprecated. Using {.arg site_ids = NULL} instead."
4444
)

inst/CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ bibentry(bibtype = "Misc",
1414
url = "https://ecosystemecologylab.github.io/fluxnet-package/",
1515
abstract = "Utility functions to help download, read in, and work with data from FLUXNET.",
1616
keywords = "ameriflux,fluxnet",
17-
version = "0.3.1")
17+
version = "0.3.2")

tests/testthat/test-flux_extract.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,17 @@ test_that("network arg works", {
4545
"TERN_AU-Wom_FLUXNET_FLUXMET_YY_2010-2024_v1.3_r1.csv"
4646
)
4747
)
48+
})
49+
50+
test_that("site_ids works", {
51+
tmpdir <- withr::local_tempdir()
52+
out <- flux_extract(
53+
zip_dir = test_path("testdata"),
54+
output_dir = tmpdir,
55+
site_ids = c("AR-CCg", "AU-Wom"),
56+
resolutions = c("y"),
57+
extract_varinfo = FALSE,
58+
extract_txt = FALSE
59+
)
60+
expect_s3_class(out, "data.frame")
4861
})

0 commit comments

Comments
 (0)