Skip to content

vegawidget

'Htmlwidget' for 'Vega' and 'Vega-Lite'

v0.5.0 · Jan 13, 2024 · MIT + file LICENSE

Description

'Vega' and 'Vega-Lite' parse text in 'JSON' notation to render chart-specifications into 'HTML'. This package is used to facilitate the rendering. It also provides a means to interact with signals, events, and datasets in a 'Vega' chart using 'JavaScript' or 'Shiny'.

Downloads

CRAN

1.1K

Last 30 days

3481st

3.6K

Last 90 days

17.1K

Last year

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

r2u CRAN

5

Last 30 days

43

Last 90 days

161

Last year

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

autoCRAN

1

Last 7 days

7

Last 30 days

0

All-time

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

CRAN Check Status

13 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 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vegawidget)
  > 
  > test_check("vegawidget")
  
  Attaching package: 'rlang'
  
  The following objects are masked from '
...[truncated]...
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  
  [ FAIL 1 | WARN 1 | SKIP 9 | PASS 102 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

11,033

Files

170

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,535 (32%)Tests 3,675 (33.3%)Docs 1,751 (15.9%)Vignettes 2,072 (18.8%)

API

Exported functions

49

Internal functions

65

Recent export changes

v0.4.1+4 vega_version_all, vega_version_available, vw_fetch +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.04

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

87.5%

\dontrun example ratio

0%

Roxygen coverage

98%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

1

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2019-01-30

Latest release

2024-01-13

Avg cadence

238 days

Cold removal rate

Dep drift

3

LOC over versions

v0.1.0: 5,563 LOCv0.2.1: 7,768 LOCv0.3.1: 7,880 LOCv0.3.2: 8,181 LOCv0.3.3: 8,184 LOCv0.4.1: 10,986 LOCv0.4.2: 11,016 LOCv0.4.3: 11,018 LOCv0.5.0: 11,033 LOC

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

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies jsonlite htmlwidgets assertthat rlang glue magrittr htmltools digest altair shinyExprPortal vegawidget

Version History

10 tracked
new 0.5.0 Mar 10, 2026
updated 0.5.0 ← 0.4.3 diff Jan 12, 2024
updated 0.4.3 ← 0.4.2 diff Sep 2, 2023
updated 0.4.2 ← 0.4.1 diff Oct 19, 2022
updated 0.4.1 ← 0.3.3 diff Jan 28, 2022
updated 0.3.3 ← 0.3.2 diff Nov 1, 2021
updated 0.3.2 ← 0.3.1 diff Jan 11, 2021
updated 0.3.1 ← 0.2.1 diff Jan 21, 2020
updated 0.2.1 ← 0.1.0 diff Jun 23, 2019
new 0.1.0 Jan 29, 2019