Package: rlmstudio 0.3.0

rlmstudio: Access and Control LM Studio

Run local Large Language Models (LLMs) over many texts from 'R' without sending data to a third party. A community-maintained wrapper for the 'LM Studio' command line interface and API that provides functions to manage the local daemon and server, download and load models, and score, label, or generate text at scale.

Authors:Jeffrey Girard [aut, cph, cre]

rlmstudio_0.3.0.tar.gz
rlmstudio_0.3.0.zip(r-4.7-any)rlmstudio_0.3.0.zip(r-4.6-any)rlmstudio_0.3.0.zip(r-4.5-any)
rlmstudio_0.3.0.tgz(r-4.6-any)rlmstudio_0.3.0.tgz(r-4.5-any)
rlmstudio_0.3.0.tar.gz(r-4.7-any)rlmstudio_0.3.0.tar.gz(r-4.6-any)
rlmstudio_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rlmstudio/json (API)

# Install 'rlmstudio' in R:
install.packages('rlmstudio', repos = c('https://jmgirard.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jmgirard/rlmstudio/issues

Pkgdown/docs site:https://jmgirard.github.io

On CRAN:

Conda:

5.51 score 2 stars 5 scripts 270 downloads 26 exports 16 dependencies

Last updated from:11495299fb. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK249
source / vignettesOK175
linux-releaseOK232
macos-releaseOK199
macos-oldrelOK175
windows-develOK215
windows-releaseOK256
windows-oldrelOK272
wasm-releaseOK97

Exports:check_lms_versionhas_lmsinstall_lmstudiolist_instanceslist_modelslms_chatlms_chat_batchlms_chat_nativelms_chat_openailms_chat_openresponseslms_daemon_startlms_daemon_statuslms_daemon_stoplms_downloadlms_download_statuslms_embedlms_loadlms_pathlms_score_expectedlms_server_readylms_server_startlms_server_statuslms_server_stoplms_unloadlms_unload_allwith_lms_daemon

Dependencies:askpassclicurlgluehttr2jsonlitelifecyclemagrittropensslprocessxpsR6rlangsysvctrswithr

Chat Options, Conversations, and Errors
Start the server and load the model | Three routes | Request options | A follow-up question | A whole conversation | The raw reply | Errors in a script | Clean up

Last update: 2026-10-02
Started: 2026-10-01

Getting Started with LM Studio in R
Install LM Studio | Start the server | Find a model | Download the model | Put the model in memory | Chat with the model | Send several prompts in one call | Clean up | Without the desktop app

Last update: 2026-10-02
Started: 2026-03-13

Text Analysis with LM Studio in R
Hide the progress messages | Start the server and load the model | The texts | A summary of each text | Labels and ratings as columns | A score from token probabilities | When an input fails | Similarity between texts | All the results | The loaded models | Clean up

Last update: 2026-10-01
Started: 2026-10-01

Using LM Studio Without the Desktop App
Install the command-line tool | Start the daemon | Start the server | Use an API token | Reach a server on another computer | Run a script with the daemon | Stop the daemon

Last update: 2026-10-01
Started: 2026-03-13

Readme and manuals

Help Manual

Help pageTopics
Check if the installed LM Studio CLI meets the minimum requirementcheck_lms_version
Check if LM Studio CLI is installedhas_lms
Help the user install or update LM Studioinstall_lmstudio
List loaded model instanceslist_instances
List available modelslist_models
Chat Completion with LM Studiolms_chat
Batch Chat Completion with LM Studiolms_chat_batch
Chat Completion via Native APIlms_chat_native
Chat Completion via OpenAI Compatibility APIlms_chat_openai
Chat Completion via OpenResponses APIlms_chat_openresponses
Start the LM Studio headless daemonlms_daemon_start
Check the global status of LM Studiolms_daemon_status
Stop the LM Studio headless daemonlms_daemon_stop
Download a model via REST APIlms_download
Get the status of a download joblms_download_status
Turn Text into Embedding Vectorslms_embed
Load a model via REST APIlms_load rlmstudio_context_above_max
Get the absolute path to the LMS executablelms_path
Calculate Expected Scores and Uncertainty from Logprobslms_score_expected
Check whether a host answers as a usable LM Studio serverlms_server_ready
Start the LM Studio local serverlms_server_start
Check the status of the LM Studio serverlms_server_status
Stop the LM Studio local serverlms_server_stop
Unload a model from memory via REST APIlms_unload
Unload all models from memorylms_unload_all
Authenticating to an LM Studio serverrlmstudio.token RLMSTUDIO_API_TOKEN rlmstudio_token
Conditions raised by rlmstudiorlmstudio-conditions rlmstudio_api_error rlmstudio_bad_response rlmstudio_model_mismatch rlmstudio_no_server rlmstudio_reply_cut_off
Run code with the LM Studio daemon activewith_lms_daemon