Man pages for TheOpenAIR
Integrate 'OpenAI' Large Language Models into Your 'R' Workflows

add_roxygenAdd Roxygen2 documentation to an R function
add_roxygen_promptInput: message content template for add_roxygen()
add_to_chatlogAdd data to a chat log
chatStart or continue a chat conversation
chat_completionGenerate Text Using the OpenAI API's Chat Endpoint
chatlog-classchatlog class
clean_outputClean Output From Code Responses
clear_chatlogClear a chat log
contains_r_funcCheck if a text file or character string contains an R...
contains_roxygenCheck if a text file or character string contains Roxygen2...
count_tokensCount the number of tokens in a text string
createdExtract Created DateTime from OpenAI API response
df_to_csvConvert a data.frame to a CSV-formatted character string
edit_codeEdit code based on user's input
extract_blocksExtract blocks of a specified type from a list of blocks
extract_blocks_contentExtract the content parts of blocks
extract_entitiesExtract Entities from a Text
extract_entities_promptInput: message content template for extract_entities()
extract_r_codeExtract R code and comments from a given input string.
extract_roxygen2Extract roxygen2 documentation lines from a function...
get_chatlogGet the current chatlog
grapes-c-grapesSend a message to ChatGPT and assign the response to a...
idExtract ID from OpenAI API response
initialize_messagesInitialize a new messages object for OpenAI API chat...
install_tiktokenInstall the tiktoken Python package
is_chatlogDetermine if an object is a chatlog
is_jsonCheck if the provided string is in valid JSON format.
is_pythonCheck if a Character String Contains Valid Python Code
is_rCheck if a character string contains valid R code
is_xmlCheck if the provided string is in valid XML format.
java_to_rConvert Java code to R code
java_to_r_promptInput: message content template for java_to_r()
messagesExtract messages from a response object or a chatlog object
messages_contentExtract Messages Content from OpenAI API Response
modelExtract Model from OpenAI API response
nested_to_pipeConvert nested R code to pipe syntax
nested_to_pipe_promptInput: message content template for nested_to_pipe()
num_tokensGet number of tokens in a string using OpenAI's tiktoken...
num_tokens_fileCompute total number of tokens in a text file
objectExtract object information from OpenAI API response
openai_api_keySet OpenAI API Key as an Environment Variable
parse_responseParse a Response From the API
pipePipe operator
python_to_rConvert Python code to R code
python_to_r_promptInput: message content template for python_to_r()
read_textConvert Text to Tidy-Text Format
read_text_batchesLoad data from text files in batches
refactorRefactor R Code with AI Assistance
refactor_promptInput: message content template for refactor()
references_to_bibtexConvert references in plain text to BibTeX format
references_to_bibtex_promptInput: message content template for references_to_bibtex()
regenerateRegenerate the last response in an ongoing chat
replace_file_extensionReplace File Extension
r_to_pythonConvert R Code to Python Code
r_to_python_promptInput: message content template for r_to_python()
set_chatlogSet up a new chatlog
split_textSplit Text into Chunks
start_chatStart a new chat session
TheOpenAIR-packageTheOpenAIR: Integrate 'OpenAI' Large Language Models into...
trumpEssay on How Donald Trump Became President of the United...
usageExtract usage data from OpenAI API response
write_codeWrite code based on user's input
write_testWrite test for an R function
write_test_promptInput: message content template for write_test()
TheOpenAIR documentation built on April 27, 2023, 5:10 p.m.