shinyscholar
A Template for Creating Reproducible 'shiny' Applications
Description
Create a skeleton 'shiny' application with create_template() that is reproducible, can be saved and meets academic standards for attribution. Forked from 'wallace'. Code is split into modules that are loaded and linked together automatically and each call one function. Guidance pages explain modules to users and flexible logging informs them of any errors. Options enable asynchronous operations, viewing of source code, interactive maps and data tables. Use to create complex analytical applications, following best practices in open science and software development. Includes functions for automating repetitive development tasks and an example application at run_shinyscholar() that requires install.packages("shinyscholar", dependencies = TRUE). A guide to developing applications can be found on the package website.
Downloads
684
Last 30 days
5446th
2.1K
Last 90 days
7.5K
Last year
Trend: -11.6% (30d vs prior 30d)
CRAN Check Status
Show all 14 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-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| 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 | ERROR |
Check details (2 non-OK)
tests
Running 'testthat.R' [69s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> Sys.setenv("R_TEST" = "")
> library(testthat)
> library(shinyscholar)
Loading required package: bslib
Attaching package: 'bslib'
The following object is masked from 'package:utils':
page
Loading required package: gargoyle
Attaching package: 'gargoyle'
The following object is masked from 'package:testthat':
watch
Loading required package: leaflet
Loading required package: shiny
> library(shinytest2)
>
> test_check("shinyscholar")
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-156.R
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-198.R
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-228.R
── pak::local_insta
...[truncated]...
plate.R:210:5
2. │ └─base::force(code)
3. └─devtools::install(...) at test-create_template.R:228:7
4. └─(function() {...
5. └─pak::local_install_deps(...)
6. └─pak:::remote(...)
7. └─err$throw(res$error)
── Error ('test-create_template.R:258:7'): Check async, with map runs correctly ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! error in pak subprocess
Caused by error in `get_user_cache_dir()`:
! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
Backtrace:
▆
1. ├─withr::with_temp_libpaths(...) at test-create_template.R:240:5
2. │ └─base::force(code)
3. └─devtools::install(...) at test-create_template.R:258:7
4. └─(function() {...
5. └─pak::local_install_deps(...)
6. └─pak:::remote(...)
7. └─err$throw(res$error)
[ FAIL 4 | WARN 1 | SKIP 27 | PASS 152 ]
Error:
! Test failures.
Execution halted
tests
Running 'testthat.R' [51s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> Sys.setenv("R_TEST" = "")
> library(testthat)
> library(shinyscholar)
Loading required package: bslib
Attaching package: 'bslib'
The following object is masked from 'package:utils':
page
Loading required package: gargoyle
Attaching package: 'gargoyle'
The following object is masked from 'package:testthat':
watch
Loading required package: leaflet
Loading required package: shiny
> library(shinytest2)
>
> test_check("shinyscholar")
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-156.R
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-198.R
── pak::local_install_deps() ───────────────────────────────────────────────────
Saving _problems/test-create_template-228.R
── pak::local_insta
...[truncated]...
plate.R:210:5
2. │ └─base::force(code)
3. └─devtools::install(...) at test-create_template.R:228:7
4. └─(function() {...
5. └─pak::local_install_deps(...)
6. └─pak:::remote(...)
7. └─err$throw(res$error)
── Error ('test-create_template.R:258:7'): Check async, with map runs correctly ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! error in pak subprocess
Caused by error in `get_user_cache_dir()`:
! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
Backtrace:
▆
1. ├─withr::with_temp_libpaths(...) at test-create_template.R:240:5
2. │ └─base::force(code)
3. └─devtools::install(...) at test-create_template.R:258:7
4. └─(function() {...
5. └─pak::local_install_deps(...)
6. └─pak:::remote(...)
7. └─err$throw(res$error)
[ FAIL 4 | WARN 1 | SKIP 27 | PASS 152 ]
Error:
! Test failures.
Execution halted
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 17, 2026
tests
Running 'testthat.R' [68s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> Sys.setenv("R_TEST" = "")
> library(testthat)
> library(shinyscholar)
Loading required package: bslib
Attaching package: 'bslib'
The follo
...[truncated]...
ate_template.R:258:7
4. └─(function() {...
5. └─pak::local_install_deps(...)
6. └─pak:::remote(...)
7. └─err$throw(res$error)
[ FAIL 4 | WARN 1 | SKIP 27 | PASS 152 ]
Error:
! Test failures.
Execution halted