From d46ee515c90ff7a86150c04d09b1a51a369d704c Mon Sep 17 00:00:00 2001 From: Josiah Parry Date: Thu, 21 Nov 2024 13:45:12 -0800 Subject: [PATCH] lintr --- R/run_cargo.R | 23 ++++++++++++----------- tests/testthat/test-license_note.R | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/R/run_cargo.R b/R/run_cargo.R index 2d521f17..1db8ed13 100644 --- a/R/run_cargo.R +++ b/R/run_cargo.R @@ -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") @@ -76,4 +77,4 @@ run_cargo <- function( } out -} \ No newline at end of file +} diff --git a/tests/testthat/test-license_note.R b/tests/testthat/test-license_note.R index 1092e6ae..92bf73cb 100644 --- a/tests/testthat/test-license_note.R +++ b/tests/testthat/test-license_note.R @@ -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"))