Skip to content

Commit

Permalink
move pwd arg to 2nd position
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbarks committed Oct 4, 2023
1 parent e7a6bcb commit 4ca56c5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions R/rp_xlsb.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#'
#' @examples
#' path_xlsb <- system.file("extdata", "xltest.xlsb", package = "rpxl")
#' rp_xlsb(path_xlsb, sheet = 1, password = "1234")
#' rp_xlsb(path_xlsb, password = "1234", sheet = 1)
#'
#' @importFrom readxlsb read_xlsb
#' @export rp_xlsb
rp_xlsb <- function(path,
sheet = NULL,
password,
sheet = NULL,
range = NULL,
col_names = TRUE,
col_types = NULL,
Expand Down
2 changes: 1 addition & 1 deletion R/rp_xlsx.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#' @importFrom readxl read_xlsx readxl_progress
#' @export rp_xlsx
rp_xlsx <- function(path,
sheet = NULL,
password,
sheet = NULL,
range = NULL,
col_names = TRUE,
col_types = NULL,
Expand Down
3 changes: 1 addition & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ install_rpxl()
```



## Usage

```{r}
Expand All @@ -78,7 +77,7 @@ sheet 1.

```{r}
path_xlsb <- system.file("extdata", "xltest.xlsb", package = "rpxl")
rp_xlsb(path_xlsb, sheet = 1L, password = "1234")
rp_xlsb(path_xlsb, password = "1234", sheet = 1)
```

To decrypt a password-protected Excel file and save it under a different
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ specified (either with argument ‘sheet’ or ‘range’), whereas

``` r
path_xlsb <- system.file("extdata", "xltest.xlsb", package = "rpxl")
rp_xlsb(path_xlsb, sheet = 1L, password = "1234")
rp_xlsb(path_xlsb, password = "1234", sheet = 1)
```

## x ext protected
Expand Down
8 changes: 4 additions & 4 deletions man/rp_xlsb.Rd

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

6 changes: 3 additions & 3 deletions man/rp_xlsx.Rd

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

0 comments on commit 4ca56c5

Please sign in to comment.