Skip to content

Commit

Permalink
Adds CRAN comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Oct 18, 2024
1 parent 1d7a328 commit 3936c72
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion r/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Authors@R: c(
)
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
Expand Down
12 changes: 6 additions & 6 deletions r/R/llm-verify.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
24 changes: 24 additions & 0 deletions r/cran-comments.md
Original file line number Diff line number Diff line change
@@ -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 ✔

0 comments on commit 3936c72

Please sign in to comment.