Skip to contents

Dispatches the verbs of the rmorie launcher. Verbs:

login [--email ADDRESS] [--code CODE] [--no-browser]

sign in for the curated tables at data.rmorie.com with GitHub (device flow) or an emailed code: the data key, never a language model

login --token [KEY]

store a data key you already have (prompts for it when KEY is omitted)

logout

forget the data key

doctor

the language-model routes set up on this machine, the one ask will take, and the data key

config [show | help | get KEY | set KEY VALUE | unset KEY | setup | path]

show or change the language-model settings (morie_llm_config): a provider's key and model, Ollama, your own server, the route; setup walks through them

models [--route ROUTE]

the models a route offers, the one in use marked

ask [--model NAME] [--route ROUTE] PROMPT...

ask the model you set up, with the help of rmorie, rmoriebricklayer and rmoriedata at hand

analyze SUBJECT [JSON]

run an analysis subject through cli_main()

explain FILENAME, inspect PATH, verify PATH

read, browse and validate module output tables

profile-dataset PATH, sample PATH --n N

profile a CSV, draw a sample from it

run-modules, pipeline

run several modules; the pipeline tracks compute emissions and seals them in a capsule

emissions, verify-pollution

measure this machine's compute emissions; run the pollution-to-health pipeline

percy, agent, chat

talk to Perseus through the provider chain

selftest, tutorial, generate-template, update

smoke test, walkthrough, first-paper scaffold, update check

crypto, ingest, download-bootstrap, exec, edit, percysuits

file encryption, open-data feeds, bootstrap weights, evaluate R code, edit a file, pull models

version

print the package version

help [start | llm | config | r]

this list, or a guide: getting started, the language-model routes, every setting, the same from R

Usage

morie_cli(args = commandArgs(trailingOnly = TRUE), out = cat)

Arguments

args

Character vector of arguments; defaults to the command line.

out

Connection or function for output (default: the console).

Value

The exit status, invisibly (0 on success).

Examples

morie_cli("version")
#> rmorie 1.4.5
morie_cli(c("ask", "--help"))
#> usage: rmorie ask [--model NAME] [--route ROUTE] PROMPT...   ask the model you brought (ROUTE: own, ollama, a provider)
#> [1] 0