Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 21, 2024
1 parent f90145f commit d46ee51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions R/run_cargo.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,21 @@
#' the function running in the frame was invoked.
#' @param ... additional arguments passed to [`processx::run()`].
#' @returns
#' A list with elements `status`, `stdout`, `stderr`, and `timeout`. See [`processx::run()`]. If `parse_json = TRUE`, result of parsing JSON-structured standard
#' output.
#' A list with elements `status`, `stdout`, `stderr`, and `timeout`.
#' See [`processx::run()`]. If `parse_json = TRUE`, result of parsing
#' JSON-structured standard output.
#'
#' @keywords internal
#' @noRd
run_cargo <- function(
args,
wd = find_extendr_crate(),
error_on_status = TRUE,
echo = TRUE,
env = get_cargo_envvars(),
parse_json = FALSE,
error_call = rlang::caller_call(),
...
args,
wd = find_extendr_crate(),
error_on_status = TRUE,
echo = TRUE,
env = get_cargo_envvars(),
parse_json = FALSE,
error_call = rlang::caller_call(),
...
) {
check_character(args, call = error_call, class = "rextendr_error")
check_string(wd, call = error_call, class = "rextendr_error")
Expand Down Expand Up @@ -76,4 +77,4 @@ run_cargo <- function(
}

out
}
}
2 changes: 1 addition & 1 deletion tests/testthat/test-license_note.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_that("LICENSE.note is generated properly", {
dir.create(file.path("src", "rust"), recursive = TRUE)
expect_error(write_license_note())

# create license note for extendr package
# create license note for extendr package
use_extendr()
write_license_note()
expect_snapshot(cat_file("LICENSE.note"))
Expand Down

0 comments on commit d46ee51

Please sign in to comment.