Skip to content

edgemodelr

Local Large Language Model Inference Engine

v0.4.1 · May 26, 2026 · MIT + file LICENSE

Description

Enables R users to run large language models locally using 'GGUF' model files and the 'llama.cpp' inference engine. Provides a complete R interface for loading models, generating text completions, extracting vector representations, and streaming responses in real-time. Includes grammar-constrained generation for structured output, text classification, and retrieval-augmented generation (RAG) pipelines. Supports local inference without requiring cloud APIs or internet connectivity, ensuring complete data privacy and control. Based on the 'llama.cpp' project by Georgi Gerganov (2023) <https://github.com/ggml-org/llama.cpp>.

Downloads

CRAN

402

Last 30 days

10193rd

833

Last 90 days

1.9K

Last year

Trend: +70.3% (30d vs prior 30d)

r2u CRAN

25

Last 30 days

113

Last 90 days

368

Last year

Trend: -44.4% (30d vs prior 30d)

autoCRAN

3

Last 7 days

16

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

1 ERROR
12 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-release-macos-x86_64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/edgemodelr.Rcheck/00install.out’ for details.

Check History

ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/edgemodelr.Rcheck/00install.out’ for details.
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 14.2Mb
  sub-directories of 1Mb or more:
    libs  13.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 14.1Mb
  sub-directories of 1Mb or more:
    libs  13.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.9Mb
  sub-directories of 1Mb or more:
    libs   7.5Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/edgemodelr.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 14.2Mb
  sub-directories of 1Mb or more:
    libs  13.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 14.1Mb
  sub-directories of 1Mb or more:
    libs  13.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.9Mb
  sub-directories of 1Mb or more:
    libs   7.5Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 14.2Mb
  sub-directories of 1Mb or more:
    libs  13.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 14.1Mb
  sub-directories of 1Mb or more:
    libs  13.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.9Mb
  sub-directories of 1Mb or more:
    libs   7.5Mb

Code

Structure

Lines of code

147,088

Files

328

Compiled share

95.2%

Has compiled src

Yes

Language breakdown

R 4,117 (2.8%)C/C++/src 140,041 (95.2%)Tests 988 (0.7%)Docs 1,942 (1.3%)

API

Exported functions

39

Internal functions

35

Recent export changes

v0.4.1+19 edge_install_cuda, edge_install_cuda_toolkit, edge_reload_cuda +16 more
v0.2.0+2 edge_cache_info, edge_simd_info

Testing & CI

Has tests

Yes

Test-to-code ratio

0.24

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

97.4%

\dontrun example ratio

88.9%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

45.5%

Unsafe pattern score

2

Dep constraint coverage

33.3%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.0

System requirements

1

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2025-09-22

Latest release

2026-05-26

Avg cadence

19 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 118,190 LOCv0.1.4: 120,479 LOCv0.1.5: 120,479 LOCv0.1.6: 120,476 LOCv0.2.0: 121,233 LOCv0.4.1: 147,088 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp edgemodelr

Version History

7 tracked
updated 0.4.1 ← 0.2.0 diff May 26, 2026
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.6 diff Feb 25, 2026
updated 0.1.6 ← 0.1.5 diff Feb 6, 2026
updated 0.1.5 ← 0.1.4 diff Jan 28, 2026
updated 0.1.4 ← 0.1.0 diff Jan 21, 2026
new 0.1.0 Sep 21, 2025