Skip to content

Commit a0bec0e

Browse files
committed
fix: use explicit namespace for statmod::dinvgauss in wald/pdf runner
Replace `library( statmod )` with explicit `statmod::dinvgauss()` call to resolve `object_usage_linter` error in CI, which cannot see the function definition loaded via `library()`. Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: passed - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent fbc9997 commit a0bec0e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/dists/wald/pdf/test/fixtures/r

lib/node_modules/@stdlib/stats/base/dists/wald/pdf/test/fixtures/r/runner.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,12 @@ main <- function() {
7979
# Get the directory of this script:
8080
source_dir <- dirname( get_script_path() );
8181

82-
# Load the statmod library for dinvgauss:
83-
library( statmod ); # nolint
84-
8582
# Generate test fixture data:
8683
# Note: x, mu, and lambda must be > 0 for Wald distribution
8784
mu <- sample( seq( 0.1, 10.0, length.out = 1000L ) );
8885
lambda <- sample( seq( 0.1, 100.0, length.out = 1000L ) );
8986
x <- sample( seq( 0.01, 100.0, length.out = 1000L ) );
90-
y <- dinvgauss( x, mu, lambda );
87+
y <- statmod::dinvgauss( x, mu, lambda );
9188

9289
data <- list( mu = mu, lambda = lambda, x = x, expected = y );
9390

0 commit comments

Comments
 (0)