Skip to content

Commit

Permalink
don't warn so much
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Nov 14, 2024
1 parent 00bf5f1 commit 283667f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/open.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#' }
#' @name open_nz
#' @export
open_nz <- function(nz, backend = NULL, warn = TRUE) {
open_nz <- function(nz, backend = NULL, warn = FALSE) {
UseMethod("open_nz")
}

Expand All @@ -47,7 +47,7 @@ try_zarr <- function(nz, warn) {

#' @name open_nz
#' @export
open_nz.Store <- function(nz, backend = NULL, warn = TRUE) {
open_nz.Store <- function(nz, backend = NULL, warn = FALSE) {

ret <- try_zarr(nz, warn)

Expand All @@ -56,7 +56,7 @@ open_nz.Store <- function(nz, backend = NULL, warn = TRUE) {

#' @name open_nz
#' @export
open_nz.character <- function(nz, backend = NULL, warn = TRUE) {
open_nz.character <- function(nz, backend = NULL, warn = FALSE) {

if(!is.null(backend) && !backend %in% c("pizzarr", "RNetCDF")) stop("'backend' must be NULL, \"pizzarr\", or \"RNetCDF\"")

Expand All @@ -79,6 +79,6 @@ open_nz.character <- function(nz, backend = NULL, warn = TRUE) {

#' @name open_nz
#' @export
open_nz.NULL <- function(nz, backend = NULL, warn = TRUE) {
open_nz.NULL <- function(nz, backend = NULL, warn = FALSE) {
NULL
}
8 changes: 4 additions & 4 deletions man/open_nz.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 283667f

Please sign in to comment.