tests/testthat/testdata/test_json.knit.md

title: "Test JSON data storage using testthat" output: html_document date: "2024-05-31"

Reproducible Computations

The following computations will be automatically tested for reproducibility with every build of this document.

xyz <- 1:10
abc <- "hello world"
some_obj <- t.test(xyz)
some_obj
## 
##  One Sample t-test
## 
## data:  xyz
## t = 5.7446, df = 9, p-value = 0.0002782
## alternative hypothesis: true mean is not equal to 0
## 95 percent confidence interval:
##  3.334149 7.665851
## sample estimates:
## mean of x 
##       5.5
Code Chunk Reproduction Report
- ✅abc: REPRODUCTION SUCCESSFUL - ✅some_obj: REPRODUCTION SUCCESSFUL - ✅xyz: REPRODUCTION SUCCESSFUL

regular R

xyz <- 1:10
abc <- "hello world"
some_obj <- t.test(xyz)
some_obj
## 
##  One Sample t-test
## 
## data:  xyz
## t = 5.7446, df = 9, p-value = 0.0002782
## alternative hypothesis: true mean is not equal to 0
## 95 percent confidence interval:
##  3.334149 7.665851
## sample estimates:
## mean of x 
##       5.5


Try the reproducibleRchunks package in your browser

Any scripts or data that you put into this service are public.

reproducibleRchunks documentation built on Aug. 8, 2025, 6:38 p.m.