Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```
Expand Down Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# lang (development version)
# lang 0.1.1

## New features

Expand Down
2 changes: 1 addition & 1 deletion R/lang-use.R
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion man/lang_use.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions tests/testthat/_snaps/lang-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion tests/testthat/test-lang-use.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
})
Loading