perplexR

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / perplexR

perplexR

v0.0.3
perplexR
Repository CRANLicense GPL (>= 3)Needs compilation no
DOI
10.32614/CRAN.package.perplexR

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

0
표시할 핵심 신호가 없습니다.

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
0.0.3
License
GPL (>= 3)
Needs compilation
no
Last observed
2026-05-30
CRAN
cran.r-project.org/package=perplexR

수집 소스별 패키지 정보

1개 소스
CRAN
0.0.3
2026-05-30
License
GPL (>= 3)
Imports
clipr, httr, jsonlite, miniUI, rstudioapi, shiny, utils
Needs compilation
no
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

5개 표시전체 7개
PackageTypeSpec
clipr
CRAN · 0.0.3 · 2026-05-30
Importsclipr
httr
CRAN · 0.0.3 · 2026-05-30
Importshttr
jsonlite
CRAN · 0.0.3 · 2026-05-30
Importsjsonlite
miniUI
CRAN · 0.0.3 · 2026-05-30
ImportsminiUI
rstudioapi
CRAN · 0.0.3 · 2026-05-30
Importsrstudioapi
1 / 2

이 패키지를 쓰는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

패키지 페이지

All links
24
Repository
CRAN
Version
0.0.3
Collected
2026-05-30 11:25:17
Package page
https://cran.r-project.org/web/packages/perplexR/index.html
DOI
10.32614/CRAN.package.perplexR
CRAN checks
https://cran.r-project.org/web/checks/check_results_perplexR.html
NEWS
https://cran.r-project.org/web/packages/perplexR/news/news.html
Reference HTML
https://cran.r-project.org/web/packages/perplexR/refman/perplexR.html
Reference PDF
https://cran.r-project.org/web/packages/perplexR/perplexR.pdf
Source package
https://cran.r-project.org/src/contrib/perplexR_0.0.3.tar.gz
Page fields
Author
Gabriel Kaiser [aut, cre]
BugReports
https://github.com/GabrielKaiserQFin/perplexR/issues
CRAN Checks
perplexR results
DOI
10.32614/CRAN.package.perplexR
Language
en-US
License
GPL (≥ 3)
Maintainer
Gabriel Kaiser <quantresearch.gk at gmail.com>
Materials
NEWS
NeedsCompilation
no
Package Source
perplexR_0.0.3.tar.gz
Published
2024-03-29
Reference Manual
perplexR.html , perplexR.pdf
URL
https://github.com/GabrielKaiserQFin/perplexR
Version
0.0.3
Windows Binaries
r-devel: perplexR_0.0.3.zip , r-release: perplexR_0.0.3.zip , r-oldrel: perplexR_0.0.3.zip
MacOS Binaries
r-release (arm64): perplexR_0.0.3.tgz , r-oldrel (arm64): perplexR_0.0.3.tgz , r-release (x86_64): perplexR_0.0.3.tgz , r-oldrel (x86_64): perplexR_0.0.3.tgz
Version
0.0.3
Published
2024-03-29
DOI
10.32614/CRAN.package.perplexR
Author
Gabriel Kaiser [aut, cre]
Maintainer
Gabriel Kaiser <quantresearch.gk at gmail.com>
BugReports
https://github.com/GabrielKaiserQFin/perplexR/issues
License
GPL (≥ 3)
URL
https://github.com/GabrielKaiserQFin/perplexR
NeedsCompilation
no
Language
en-US
Materials
NEWS
CRAN Checks
perplexR results
Reference Manual
perplexR.html , perplexR.pdf
Package Source
perplexR_0.0.3.tar.gz
Windows Binaries
r-devel: perplexR_0.0.3.zip , r-release: perplexR_0.0.3.zip , r-oldrel: perplexR_0.0.3.zip
MacOS Binaries
r-release (arm64): perplexR_0.0.3.tgz , r-oldrel (arm64): perplexR_0.0.3.tgz , r-release (x86_64): perplexR_0.0.3.tgz , r-oldrel (x86_64): perplexR_0.0.3.tgz
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"perplexR.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/perplexR/refman/perplexR.html"},{"label":"perplexR.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/perplexR/perplexR.pdf"}]
Text
Reference manual: perplexR.html , perplexR.pdf
Downloads
Heading
Downloads
Links
[{"label":"perplexR_0.0.3.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/perplexR_0.0.3.tar.gz"},{"label":"perplexR_0.0.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/perplexR_0.0.3.zip"},{"label":"perplexR_0.0.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/perplexR_0.0.3.zip"},{"label":"perplexR_0.0.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/perplexR_0.0.3.zip"},{"label":"perplexR_0.0.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/perplexR_0.0.3.tgz"},{"label":"perplexR_0.0.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/perplexR_0.0.3.tgz"},{"label":"perplexR_0.0.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/perplexR_0.0.3.tgz"},{"label":"perplexR_0.0.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/perplexR_0.0.3.tgz"}]
Text
Package source: perplexR_0.0.3.tar.gz Windows binaries: r-devel: perplexR_0.0.3.zip , r-release: perplexR_0.0.3.zip , r-oldrel: perplexR_0.0.3.zip macOS binaries: r-release (arm64): perplexR_0.0.3.tgz , r-oldrel (arm64): perplexR_0.0.3.tgz , r-release (x86_64): perplexR_0.0.3.tgz , r-oldrel (x86_64): perplexR_0.0.3.tgz
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=perplexR","section":"","type":"","url":"https://CRAN.R-project.org/package=perplexR"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=perplexR to link to this page.
Materials 1
Documentation 2
Downloads 8
All page links 24

패키지 문서 원문

3 artifacts
field
NEWS
CRAN · 0.0.3 · Materials · text/html · 997 · 2026-05-07
Title
NEWS
Label
NEWS
Text content
Text content
NEWS code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} perplexR 0.0.3 Response: Model output is pasted to clipboard perplexR 0.0.2 New function added: translateText() perplexR 0.0.1 Initial CRAN submission.
reference_manual_html
Reference manual HTML
CRAN · 0.0.3 · Documentation · text/html · 50,079 · 2026-05-07
Title
Help for package perplexR
Label
Reference manual HTML
Text content
Text content
Help for package perplexR const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {perplexR} Contents perplexR-package API_Request AskMe annotateCode buildUnitTests clarifyCode debugCode documentCode execAddin execAddin_AskMe finishCode namingGenie optimizeCode responseParser responseReturn rewriteText translateCode translateText Type: Package Title: A Coding Assistant using Perplexity's Large Language Models Version: 0.0.3 Maintainer: Gabriel Kaiser <quantresearch.gk@gmail.com> Description: A coding assistant using Perplexity's Large Language Models https://www.perplexity.ai/ API. A set of functions and 'RStudio' add-ins that aim to help R developers. License: GPL (≥ 3) URL: https://github.com/GabrielKaiserQFin/perplexR BugReports: https://github.com/GabrielKaiserQFin/perplexR/issues Imports: clipr, httr, jsonlite, miniUI, rstudioapi, shiny, utils Encoding: UTF-8 Language: en-US RoxygenNote: 7.2.3 NeedsCompilation: no Packaged: 2024-03-28 09:58:24 UTC; Gabriel Author: Gabriel Kaiser [aut, cre] Repository: CRAN Date/Publication: 2024-03-29 20:50:02 UTC perplexR: A Coding Assistant using Perplexity's Large Language Models Description A coding assistant using Perplexity's Large Language Models https://www.perplexity.ai/ API. A set of functions and 'RStudio' add-ins that aim to help R developers. Author(s) Maintainer : Gabriel Kaiser quantresearch.gk@gmail.com See Also Useful links: https://github.com/GabrielKaiserQFin/perplexR Report bugs at https://github.com/GabrielKaiserQFin/perplexR/issues Get Large Language Model Completions Endpoint Description Get Large Language Model Completions Endpoint Usage API_Request( prompt, PERPLEXITY_API_KEY = PERPLEXITY_API_KEY, modelSelection = modelSelection, systemRole = systemRole, maxTokens = maxTokens, temperature = temperature, top_p = top_p, top_k = top_k, presence_penalty = presence_penalty, frequency_penalty = frequency_penalty, proxy = proxy ) Arguments prompt The prompt to generate completions for. PERPLEXITY_API_KEY PERPLEXITY API key. modelSelection model choice. Default is mistral-7b-instruct. systemRole Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming." maxTokens The maximum integer of completion tokens returned by API. temperature The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p. top_p Nucleus sampling threshold, valued between 0 and 1 inclusive. top_k The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled. presence_penalty A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty. frequency_penalty A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty. proxy Default value is NULL. Ask Large Language Model Description Note: See also clearChatSession . Usage AskMe( question, PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL ) Arguments question The question to ask Large Language Model. PERPLEXITY_API_KEY PERPLEXITY API key. modelSelection model choice. Default is mistral-7b-instruct. systemRole Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming." maxTokens The maximum integer of completion tokens returned by API. temperature The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p. top_p Nucleus sampling threshold, valued between 0 and 1 inclusive. top_k The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled. presence_penalty A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty. frequency_penalty A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty. proxy Default value is NULL. Value A character value with the response generated by Large Language Model. Examples ## Not run: AskMe("What do you think about Large language models?") ## End(Not run) Large Language Model: Annotate code Description Large Language Model: Annotate code Usage annotateCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL ) Arguments code The code to be commented by Large Language Model. If not provided, it will use what's copied on the clipboard. PERPLEXITY_API_KEY PERPLEXITY API key. modelSelection model choice. Default is mistral-7b-instruct. systemRole Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming." maxTokens The maximum integer of completion tokens returned by API. temperature The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p. top_p Nucleus sampling threshold, valued between 0 and 1 inclusive. top_k The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled. presence_penalty A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty. frequency_penalty A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty. proxy Default value is NULL. Value A character value with the response generated by Large Language Model. Examples ## Not run: annotateCode("z <- function(x) scale(x)^2") ## End(Not run) Large Language Model: Create Unit Tests Description Create {testthat} test cases for the code. Usage buildUnitTests( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top
section
perplexR.pdf
CRAN · 0.0.3 · Documentation · application/pdf · 131,573 · 2026-05-07
Title
perplexR.pdf
Label
perplexR.pdf

Reference for perplexR (0.0.3)

18개 topic
API_Request
Get Large Language Model Completions Endpoint
CRAN · 0.0.3 · perplexR/man/API_Request.Rd · 2026-05-07

Get Large Language Model Completions Endpoint

Aliases
API_Request
Usage
API_Request( prompt, PERPLEXITY_API_KEY = PERPLEXITY_API_KEY, modelSelection = modelSelection, systemRole = systemRole, maxTokens = maxTokens, temperature = temperature, top_p = top_p, top_k = top_k, presence_penalty = presence_penalty, frequency_penalty = frequency_penalty, proxy = proxy )
Arguments
prompt
The prompt to generate completions for.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
AskMe
Ask Large Language Model
CRAN · 0.0.3 · perplexR/man/AskMe.Rd · 2026-05-07

Note: See also clearChatSession.

Aliases
AskMe
Usage
AskMe( question, PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
question
The question to ask Large Language Model.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
AskMe("What do you think about Large language models?")
annotateCode
Large Language Model: Annotate code
CRAN · 0.0.3 · perplexR/man/annotateCode.Rd · 2026-05-07

Large Language Model: Annotate code

Aliases
annotateCode
Usage
annotateCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be commented by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
annotateCode("z <- function(x) scale(x)^2")
buildUnitTests
Large Language Model: Create Unit Tests
CRAN · 0.0.3 · perplexR/man/buildUnitTests.Rd · 2026-05-07

Create testthat test cases for the code.

Aliases
buildUnitTests
Usage
buildUnitTests( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code for which to create unit tests by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
buildUnitTests("squared_numbers <- function(numbers) numbers ^ 2")
clarifyCode
Large Language Model: Clarify Code
CRAN · 0.0.3 · perplexR/man/clarifyCode.Rd · 2026-05-07

Large Language Model: Clarify Code

Aliases
clarifyCode
Usage
clarifyCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be explained by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
clarifyCode("z <- function(x) scale(x)^2")
debugCode
Large Language Model: Find Issues in Code
CRAN · 0.0.3 · perplexR/man/debugCode.Rd · 2026-05-07

Large Language Model: Find Issues in Code

Aliases
debugCode
Usage
debugCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be analyzed by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
debugCode("z <- function(x) scale(x)2")
documentCode
Large Language Model: Code Documentation (roxygen2 style)
CRAN · 0.0.3 · perplexR/man/documentCode.Rd · 2026-05-07

Large Language Model: Code Documentation (roxygen2 style)

Aliases
documentCode
Usage
documentCode( code = clipr::read_clip(allow_non_interactive = TRUE), inLineDocumentation = "roxygen2", PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be documented by Large Language Model. If not provided, it will use what's copied on the clipboard.
inLineDocumentation
Formatting style of In-Line Documentation.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
documentCode("z <- function(x) scale(x)^2")
execAddin
Run a Large Language Model as RStudio add-in
CRAN · 0.0.3 · perplexR/man/execAddin.Rd · 2026-05-07

Run a Large Language Model as RStudio add-in

Aliases
execAddin
Usage
execAddin(FUN)
Arguments
FUN
The function to be executed.
execAddin_AskMe
Ask Large Language Model
CRAN · 0.0.3 · perplexR/man/execAddin_AskMe.Rd · 2026-05-07

Opens an interactive chat session with Large Language Model

Aliases
execAddin_AskMe
Usage
execAddin_AskMe()
finishCode
Large Language Model: Finish code
CRAN · 0.0.3 · perplexR/man/finishCode.Rd · 2026-05-07

Large Language Model: Finish code

Aliases
finishCode
Usage
finishCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be completed by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
finishCode("# A function to square each element of a vector_each <- function(")
namingGenie
Large Language Model: Create a Function or Variable Name
CRAN · 0.0.3 · perplexR/man/namingGenie.Rd · 2026-05-07

Large Language Model: Create a Function or Variable Name

Aliases
namingGenie
Usage
namingGenie( code = clipr::read_clip(allow_non_interactive = TRUE), namingConvention = "camelCase", PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code for which to give a variable name to its result. If not provided, it will use what's copied on the clipboard.
namingConvention
Naming convention. Default is camelCase.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
namingGenie("sapply(1:10, function(i) i ** 2)")
optimizeCode
Large Language Model: Optimize Code
CRAN · 0.0.3 · perplexR/man/optimizeCode.Rd · 2026-05-07

Large Language Model: Optimize Code

Aliases
optimizeCode
Usage
optimizeCode( code = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
The code to be optimized by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
optimizeCode("z <- function(x) scale(x)^2")
perplexR-package
perplexR: A Coding Assistant using Perplexity's Large Language Models
CRAN · 0.0.3 · package · perplexR/man/perplexR-package.Rd · 2026-05-07

A coding assistant using Perplexity's Large Language Models https://www.perplexity.ai/ API. A set of functions and 'RStudio' add-ins that aim to help R developers.

Aliases
perplexRperplexR-package
Keywords
LLAMALanguageLargeMistralModelOpenhermesPPLXannotate;debugdocumentoptimizetranslate
See also
Useful links: https://github.com/GabrielKaiserQFin/perplexR Report bugs at https://github.com/GabrielKaiserQFin/perplexR/issues
Author
Maintainer: Gabriel Kaiser quantresearch.gk@gmail.com
responseParser
Parse Perplexity API Response
CRAN · 0.0.3 · perplexR/man/responseParser.Rd · 2026-05-07

Takes the raw response from the Perplexity API and extracts the text content from it.

Aliases
responseParser
Usage
responseParser(raw)
Arguments
raw
The raw object returned by the Perplexity API.
Value
Returns a character vector containing the text content of the response.
responseReturn
CRAN · 0.0.3 · perplexR/man/responseReturn.Rd · 2026-05-07

responseReturn

Aliases
responseReturn
Usage
responseReturn(raw)
Arguments
raw
the chatresponse to return
Value
A character value with the response generated by Large Language Model.
rewriteText
Large Language Model: Rewrite Text
CRAN · 0.0.3 · perplexR/man/rewriteText.Rd · 2026-05-07

Large Language Model: Rewrite Text

Aliases
rewriteText
Usage
rewriteText( text = clipr::read_clip(allow_non_interactive = TRUE), PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
text
The text to be rewritten by Large Language Model. If not provided, it will use what's copied on the clipboard.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
rewriteText("Dear Recipient, I hope this message finds you well.")
translateCode
Translate Code from One Language to Another
CRAN · 0.0.3 · perplexR/man/translateCode.Rd · 2026-05-07

This function takes a snippet of code and translates it from one programming language to another using Perplexity API. The default behavior is to read the code from the clipboard and translate from R to Python.

Aliases
translateCode
Usage
translateCode( code = clipr::read_clip(allow_non_interactive = TRUE), from = "R", to = "Python", PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant with extensive programming skills.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
code
A string containing the code to be translated. If not provided, the function will attempt to read from the clipboard.
from
The language of the input code. Default is "R".
to
The target language for translation. Default is "Python".
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant with extensive knowledge of R programming."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A string containing the translated code.
Examples
translateCode("your R code here", from = "R", to = "Python")
translateText
Large Language Model: Translate Text
CRAN · 0.0.3 · perplexR/man/translateText.Rd · 2026-05-07

Large Language Model: Translate Text

Aliases
translateText
Usage
translateText( text = clipr::read_clip(allow_non_interactive = TRUE), toLanguage = "German", PERPLEXITY_API_KEY = Sys.getenv("PERPLEXITY_API_KEY"), modelSelection = c("mistral-7b-instruct", "mixtral-8x7b-instruct", "codellama-70b-instruct", "sonar-small-chat", "sonar-small-online", "sonar-medium-chat", "sonar-medium-online"), systemRole = "You are a helpful assistant.", maxTokens = 265, temperature = 1, top_p = NULL, top_k = 100, presence_penalty = 0, frequency_penalty = NULL, proxy = NULL )
Arguments
text
The text to be translated by Large Language Model. If not provided, it will use what's copied on the clipboard.
toLanguage
The language to be translated into.
PERPLEXITY_API_KEY
PERPLEXITY API key.
modelSelection
model choice. Default is mistral-7b-instruct.
systemRole
Role for model. Default is: "You are a helpful assistant."
maxTokens
The maximum integer of completion tokens returned by API.
temperature
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. Set either temperature or top_p.
top_p
Nucleus sampling threshold, valued between 0 and 1 inclusive.
top_k
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled.
presence_penalty
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
frequency_penalty
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty.
proxy
Default value is NULL.
Value
A character value with the response generated by Large Language Model.
Examples
translateText("Dear Recipient, I hope this message finds you well.")

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN0.0.32026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.