From 97cba1c2ef0248bd4d1ab189c0b6ff9700364dad Mon Sep 17 00:00:00 2001 From: Edgar Ruiz <77294576+edgararuiz@users.noreply.github.com> Date: Thu, 4 Jun 2026 14:33:20 -0500 Subject: [PATCH] Preparing release --- .claude/CLAUDE.md | 5 ----- DESCRIPTION | 2 +- NEWS.md | 2 +- R/lang-use.R | 2 +- man/lang_use.Rd | 2 +- tests/testthat/_snaps/lang-use.md | 9 +++++++++ tests/testthat/test-lang-use.R | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 33944ad..0c1b25f 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -21,9 +21,6 @@ devtools::test_active_file('R/{name}.R', desc = 'blah') # To redocument the package devtools::document() -# To check pkgdown documentation -pkgdown::check_pkgdown() - # To check the package with R CMD check devtools::check() ``` @@ -66,9 +63,7 @@ air format . - Every user-facing function should be exported and have roxygen2 documentation. - Wrap roxygen comments at 80 characters. - Internal functions should not have roxygen documentation. -- Whenever you add a new (non-internal) documentation topic, also add the topic to `_pkgdown.yml`. - Always re-document the package after changing a roxygen2 comment. -- Use `pkgdown::check_pkgdown()` to check that all topics are included in the reference index. ### `NEWS.md` diff --git a/DESCRIPTION b/DESCRIPTION index 0ff4e1f..9eaea69 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: lang Title: Translates R Help Documentation using Large Language Models -Version: 0.1.0.9000 +Version: 0.1.1 Authors@R: c( person("Edgar", "Ruiz", , "edgar@posit.co", role = c("aut", "cre")), person("Posit Software, PBC", role = c("cph", "fnd"), diff --git a/NEWS.md b/NEWS.md index 0f94279..33d0e50 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# lang (development version) +# lang 0.1.1 ## New features diff --git a/R/lang-use.R b/R/lang-use.R index 433650d..252c16e 100644 --- a/R/lang-use.R +++ b/R/lang-use.R @@ -1,6 +1,6 @@ #' Specifies the LLM provider and model to use during the R session #' @description -#' Allows us to specify the back-end provider, model to use during the current +#' Specifies the back-end provider and model to use during the current #' R session. The target language is not processed by the function, as in #' converting "english" to "en" for example. The value is passed directly to #' the LLM, and it lets the LLM interpret the target language. diff --git a/man/lang_use.Rd b/man/lang_use.Rd index 52aa999..7c055b4 100644 --- a/man/lang_use.Rd +++ b/man/lang_use.Rd @@ -44,7 +44,7 @@ Invisibly returns \code{NULL}. Prints the current configuration to the console. } \description{ -Allows us to specify the back-end provider, model to use during the current +Specifies the back-end provider and model to use during the current R session. The target language is not processed by the function, as in converting "english" to "en" for example. The value is passed directly to the LLM, and it lets the LLM interpret the target language. diff --git a/tests/testthat/_snaps/lang-use.md b/tests/testthat/_snaps/lang-use.md index 47ee58a..c810565 100644 --- a/tests/testthat/_snaps/lang-use.md +++ b/tests/testthat/_snaps/lang-use.md @@ -50,3 +50,12 @@ Lang: test Cache: [Disabled] +# Warning is displayed if .lang_chat is set + + Code + lang_use(.silent = TRUE) + Condition + Warning: + Option `.lang_chat` is no longer supported + Use `lang::lang_use([backend])` in your .RProfile file instead + diff --git a/tests/testthat/test-lang-use.R b/tests/testthat/test-lang-use.R index 5c8fb0c..6af43c4 100644 --- a/tests/testthat/test-lang-use.R +++ b/tests/testthat/test-lang-use.R @@ -45,6 +45,6 @@ test_that("lang_use() works with disabled cache", { test_that("Warning is displayed if .lang_chat is set", { withr::with_options( list(.lang_chat = 3), - expect_warning(lang_use(.silent = TRUE)) + expect_snapshot(lang_use(.silent = TRUE)) ) })