Skip to content

Commit 3599f73

Browse files
committed
Add ... arg to read_npy() for forward compat
1 parent 146fa98 commit 3599f73

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ URL: https://hugogruson.fr/grumpy/, https://github.com/Bisaloo/grumpy
2828
BugReports: https://github.com/Bisaloo/grumpy/issues
2929
Config/Needs/website:
3030
Huber-group-EMBL/Rarr
31-
Config/roxygen2/version: 8.0.0
31+
Config/roxygen2/version: 8.1.0
3232
Depends:
3333
R (>= 4.2.0)

‎R/read_npy.R‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#' Read a .npy file
22
#'
33
#' @param file Path to the .npy file
4+
#' @param ... Ignored. Reserved for future use.
45
#'
56
#' @returns An array containing the data from the .npy file
67
#'
@@ -11,7 +12,7 @@
1112
#' system.file("extdata", "test.npy", package = "grumpy")
1213
#' )
1314

14-
read_npy <- function(file) {
15+
read_npy <- function(file, ...) {
1516
if (is.character(file)) {
1617
if (!file.exists(file)) {
1718
stop("File does not exist: ", file, call. = FALSE)

‎man/read_npy.Rd‎

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

0 commit comments

Comments
 (0)