Skip to content

Commit

Permalink
Add patch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed Aug 12, 2024
1 parent 71d0d50 commit 4b8184a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions R/utils-checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ test_public_key <- function(public_key = "./inst/ssh/id_rsa.pub") {
} else {
checkmate::assert_file_exists(public_key)

test <- public_key %>%
openssl::read_pubkey() %>%
test <-
public_key |>
openssl::read_pubkey() |>
try(silent = TRUE)

if (!inherits(test, "try-error")) {
Expand Down Expand Up @@ -43,8 +44,9 @@ test_private_key <- function(private_key = "./inst/ssh/id_rsa",
} else {
checkmate::assert_file_exists(private_key)

test <- private_key %>%
openssl::read_key(password = password) %>%
test <-
private_key |>
openssl::read_key(password = password) |>
try(silent = TRUE)

if (!inherits(test, "try-error")) {
Expand Down
Binary file removed inst/extdata/test/test-2.txt.lockr
Binary file not shown.
Binary file removed inst/extdata/test/test-3.txt.lockr
Binary file not shown.
1 change: 0 additions & 1 deletion inst/ssh/id_rsa.pub

This file was deleted.

0 comments on commit 4b8184a

Please sign in to comment.