diff --git a/R/utils-checks.R b/R/utils-checks.R index 4ba4bf5..7788918 100644 --- a/R/utils-checks.R +++ b/R/utils-checks.R @@ -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")) { @@ -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")) { diff --git a/inst/extdata/test/test-2.txt.lockr b/inst/extdata/test/test-2.txt.lockr deleted file mode 100644 index f417f2e..0000000 Binary files a/inst/extdata/test/test-2.txt.lockr and /dev/null differ diff --git a/inst/extdata/test/test-3.txt.lockr b/inst/extdata/test/test-3.txt.lockr deleted file mode 100644 index fa3da03..0000000 Binary files a/inst/extdata/test/test-3.txt.lockr and /dev/null differ diff --git a/inst/ssh/id_rsa.pub b/inst/ssh/id_rsa.pub deleted file mode 100644 index 31c5e1a..0000000 --- a/inst/ssh/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPGqWE+CrEp88mnf93zQr+nis8GZXWAeaMvDQ3d0dFemALcjHb+7dAqCr28wejavS7WUBHPp2UG2TP7HyR3xkWb2lDLrJiAK3dJgqatTjbDt6PT/9STIDZjpY3tdG7Lo+IYk0wFrZzVSXRmE6ssOSAmCRrd7GG4wk318Y093kLsGPv+ZBOUMehnmpQBZHOaA7oiIQvbd5JlgK1azYVLoSCDOcLaq7/u0T+7MvGbn+APYYmSMqwCwrJEh+Tb0Ets1ML63sYvLuhZhEP/ZGExbp981/6x92EsVY+t1qwTw40pPZbMtyY+FlsjK8efo5eb0W0ZmKGM1h/KBDaDZp9Hh0z \ No newline at end of file