From b388e5bf6c470af3d7c2a420d3da87f6f68b8c95 Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Tue, 27 Aug 2024 13:01:38 +0200 Subject: [PATCH] fix some typos --- R/box_lsp.R | 2 +- R/utils.R | 2 +- man/box_use_parser.Rd | 2 +- man/use_box_lsp.Rd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/box_lsp.R b/R/box_lsp.R index 3d59830..4a7277e 100644 --- a/R/box_lsp.R +++ b/R/box_lsp.R @@ -47,7 +47,7 @@ process_module <- function(sym_name, signature, action) { #' @returns Used for side-effects provided by the `action` list of functions. #' #' @examples -#' \donttsst{ +#' \donttest{ #' action <- list( #' assign = function(symbol, value) { #' cat(paste("ASSIGN: ", symbol, value, "\n")) diff --git a/R/utils.R b/R/utils.R index 8322408..9119b05 100644 --- a/R/utils.R +++ b/R/utils.R @@ -4,7 +4,7 @@ #' @returns Writes configuration lines to `file_path`. #' #' @examples -#' if (interactive() { +#' if (interactive()) { #' use_box_lsp() #' } #' diff --git a/man/box_use_parser.Rd b/man/box_use_parser.Rd index 4721d96..a8bcf02 100644 --- a/man/box_use_parser.Rd +++ b/man/box_use_parser.Rd @@ -18,7 +18,7 @@ Used for side-effects provided by the \code{action} list of functions. Custom \{languageserver\} parser hook for \{box\} modules. } \examples{ -\dontrun{ +\donttest{ action <- list( assign = function(symbol, value) { cat(paste("ASSIGN: ", symbol, value, "\n")) diff --git a/man/use_box_lsp.Rd b/man/use_box_lsp.Rd index 4ab241a..f2968f1 100644 --- a/man/use_box_lsp.Rd +++ b/man/use_box_lsp.Rd @@ -16,7 +16,7 @@ Writes configuration lines to \code{file_path}. Configures a project to use \{box.lsp\} } \examples{ -\dontrun{ +if (interactive()) { use_box_lsp() }