diff --git a/r/.Rbuildignore b/r/.Rbuildignore index 91114bf..d97a80b 100644 --- a/r/.Rbuildignore +++ b/r/.Rbuildignore @@ -1,2 +1,14 @@ ^.*\.Rproj$ ^\.Rproj\.user$ +^.*\.csv +^.*\.qmd +^LICENSE\.md$ +^\.github$ +^codecov\.yml$ +^utils +^_pkgdown\.yml$ +^docs$ +^pkgdown$ +^cran-comments\.md$ +^CRAN-SUBMISSION$ +^_readme_cache$ diff --git a/r/DESCRIPTION b/r/DESCRIPTION index afba4e6..5dad71d 100644 --- a/r/DESCRIPTION +++ b/r/DESCRIPTION @@ -1,17 +1,19 @@ Package: mall Title: Run multiple 'Large Language Model' predictions against a table, or vectors -Version: 0.0.0.9007 -Authors@R: - person("Edgar", "Ruiz", , "first.last@example.com", role = c("aut", "cre")) +Version: 0.1.0 +Authors@R: c( + person("Edgar", "Ruiz", , "edgar@posit.co", role = c("aut", "cre")), + person(given = "Posit Software, PBC", role = c("cph", "fnd")) + ) Description: Run multiple 'Large Language Model' predictions against a table. The predictions run row-wise over a specified column. It works using a pre-determined - one-shot prompt, along with the current row's content. The prompt that is use + one-shot prompt, along with the current row's content. The prompt that is used will depend of the type of analysis needed. License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Imports: cli, dplyr, diff --git a/r/R/llm-verify.R b/r/R/llm-verify.R index 9d66f88..e18069b 100644 --- a/r/R/llm-verify.R +++ b/r/R/llm-verify.R @@ -16,24 +16,24 @@ #' @examples #' \dontrun{ #' library(mall) -#' +#' #' data("reviews") -#' +#' #' llm_use("ollama", "llama3.2", seed = 100, .silent = TRUE) -#' +#' #' # By default it will return 1 for 'true', and 0 for 'false', #' # the new column will be a factor type #' llm_verify(reviews, review, "is the customer happy") -#' +#' #' # The yes_no argument can be modified to return a different response #' # than 1 or 0. First position will be 'true' and second, 'false' #' llm_verify(reviews, review, "is the customer happy", c("y", "n")) -#' +#' #' # Number can also be used, this would be in the case that you wish to match #' # the output values of existing predictions #' llm_verify(reviews, review, "is the customer happy", c(2, 1)) #' } -#' +#' #' @export llm_verify <- function(.data, col, diff --git a/r/cran-comments.md b/r/cran-comments.md new file mode 100644 index 0000000..37b4656 --- /dev/null +++ b/r/cran-comments.md @@ -0,0 +1,24 @@ +## New submission + +This is a new package submission. Run multiple 'Large Language Model' +predictions against a table. The predictions run row-wise over a specified +column. It works using a pre-determined one-shot prompt, along with the current +row's content. The prompt that is used will depend of the type of analysis +needed. + +The README file is very short because all the information about how to use it is +this website: https://mlverse.github.io/mall/. + +## R CMD check environments + +- Mac OS M3 (aarch64-apple-darwin23), R 4.4.1 (Local) + +- Mac OS x86_64-apple-darwin20.0 (64-bit), R 4.4.1 (GH Actions) +- Windows x86_64-w64-mingw32 (64-bit), R 4.4.1 (GH Actions) +- Linux x86_64-pc-linux-gnu (64-bit), R 4.4.1 (GH Actions) +- Linux x86_64-pc-linux-gnu (64-bit), R 4.5.0 (dev) (GH Actions) +- Linux x86_64-pc-linux-gnu (64-bit), R 4.3.3 (old release) (GH Actions) + +## R CMD check results + +0 errors ✔ | 0 warnings ✔ | 0 notes ✔