Skip to content

Use {globals} hint to load tmc on test-examples#1119

Draft
averissimo wants to merge 2 commits into
mainfrom
test-examples-hint@main
Draft

Use {globals} hint to load tmc on test-examples#1119
averissimo wants to merge 2 commits into
mainfrom
test-examples-hint@main

Conversation

@averissimo

@averissimo averissimo commented Apr 17, 2024

Copy link
Copy Markdown
Contributor

Pull Request

Fixes #nnn

WIP

Changes description

  • Inject an object of {tmc} in server code instead of pkgload::load_all or library
    • Using pkgload exposes a bug with system.file function that is not shimmed (see ?pkgload::system.file)
    • shinytest2 use globals to search for packages in server code of shiny app to determine which packages to load

@averissimo
averissimo marked this pull request as draft April 17, 2024 10:24
@chlebowa

chlebowa commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

Why is the drawback of using library or require? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants