From 4b23602575de5a16c8322ba4bcdbf3dc290cde60 Mon Sep 17 00:00:00 2001 From: kumeS Date: Tue, 12 Sep 2023 23:23:25 +0900 Subject: [PATCH] 2nd version --- DESCRIPTION | 7 ++++--- NAMESPACE | 2 ++ man/chatAI4pdf.Rd | 2 +- man/createRcode.Rd | 2 +- man/createRfunction.Rd | 2 +- man/revisedText.Rd | 29 +++++++++++++++++++++++++++++ 6 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 man/revisedText.Rd diff --git a/DESCRIPTION b/DESCRIPTION index 1370b95..83faf6b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,10 +12,11 @@ Authors@R: c( Maintainer: Satoshi Kume Description: The Large Language Model (LLM) represents a groundbreaking advancement in data science and programming, and also allows us to extend the world of R. - A seamless interface for integrating the 'OpenAI' Web APIs, and other Web APIs - into R is provided in this package. This package leverages LLM-based AI techniques, - enabling efficient knowledge discovery and data analysis + A seamless interface for integrating the 'OpenAI' Web APIs into R is provided in this package. + This package leverages LLM-based AI techniques, enabling efficient knowledge discovery and data analysis (see 'OpenAI' Web APIs details ). + The previous functions such as seamless translation and image generation have been moved + to other packages 'deepRstudio' and 'stableDiffusion4R'. Depends: R (>= 4.2.0) Imports: httr, jsonlite, diff --git a/NAMESPACE b/NAMESPACE index 020e309..17439e1 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -30,6 +30,7 @@ export(ngsub) export(proofreadEnglishText) export(proofreadText) export(removeQuotations) +export(revisedText) export(searchFunction) export(slow_print_v2) export(speakInJA) @@ -71,6 +72,7 @@ importFrom(rvest,html_text) importFrom(rvest,read_html) importFrom(stats,runif) importFrom(utils,URLencode) +importFrom(utils,askYesNo) importFrom(utils,menu) importFrom(utils,setTxtProgressBar) importFrom(utils,txtProgressBar) diff --git a/man/chatAI4pdf.Rd b/man/chatAI4pdf.Rd index e818506..3681f99 100644 --- a/man/chatAI4pdf.Rd +++ b/man/chatAI4pdf.Rd @@ -20,7 +20,7 @@ A string containing the summarized text. Reads a PDF file and summarizes its content using a specified Large Language Model (LLM). } \details{ -Summarize PDF Text Using a Large Language Model +Summarize PDF Text via LLM This function reads a PDF file and summarizes its content using a specified Large Language Model (LLM). } diff --git a/man/createRcode.Rd b/man/createRcode.Rd index 9c6cedb..a015afa 100644 --- a/man/createRcode.Rd +++ b/man/createRcode.Rd @@ -30,7 +30,7 @@ Prints the generated R code to the R console. Reads text from the clipboard and generates R code based on the given input, printing the result to the R console. } \details{ -Create R Code from Selected Text or Clipboard Content and Output into the R Console +Create R Code from Selected Text or Clipboard Content This function reads text from your selected text or clipboard, interprets it as a prompt, and generates R code based on the given input. The generated R code is then printed to the R console with optional slow printing. diff --git a/man/createRfunction.Rd b/man/createRfunction.Rd index 4c56b26..0e0f9dd 100644 --- a/man/createRfunction.Rd +++ b/man/createRfunction.Rd @@ -27,7 +27,7 @@ This function returns the generated R code as a clipboard content if SelectedCod This function reads text either from your selected text in RStudio or from the clipboard, interprets it as a prompt, and generates an R function based on the given input. The generated R code is then printed into the source file or the R console with optional slow printing. } \details{ -Create R Function from Selected Text or Clipboard Content and Output into the R Console +Create R Function from Selected Text or Clipboard Content } \examples{ \dontrun{ diff --git a/man/revisedText.Rd b/man/revisedText.Rd new file mode 100644 index 0000000..7c8b2d5 --- /dev/null +++ b/man/revisedText.Rd @@ -0,0 +1,29 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/RevisedText.R +\name{revisedText} +\alias{revisedText} +\title{Revised Scientific Text} +\usage{ +revisedText(verbose = TRUE) +} +\arguments{ +\item{verbose}{Logical, whether to output verbose messages, default is TRUE.} +} +\value{ +Revised text or relevant message. +} +\description{ +This function prompts the user to input text, revision comments, and additional background information. + It then revises the text according to the comments and outputs the revised text. +} +\details{ +Revise Scientific Text +} +\examples{ +\dontrun{ + revisedText() +} +} +\author{ +Satoshi Kume +}