animint2
animint2 copied to clipboard
compiler-ghpages test failing when executed again in succession in the same RStudio session.
I am using RStudio Version 2024.04.0+735 (2024.04.0+735) on Arm Mac OS 14.4.1.
The compiler-ghpages test case fails the second time when executed again in the same RStudio session. If RStudio is restarted it passes again.
the error messages are:
tests_run(filter="ghpages") [1] "GitHub Pages" [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]
══ Failed tests ═════════════════════════════════════════════════════════════════════════════════════
── Error (test-compiler-ghpages.R:26:3): animint2pages() returns owner/repo string ──
Error in value[[3L]](cond)
: A GitHub token is required to create and push to a new repository.
To create a GitHub token, follow these steps:
- Go to https://github.com/settings/tokens/new?scopes=repo&description=animint2pages
- Confirm your password if prompted.
- Ensure that the 'repo' scope is checked.
- Click 'Generate token' at the bottom of the page.
- Copy the generated token. After creating the token, you can set it up in your R environment by running: Sys.setenv(GITHUB_PAT="yourGithubPAT") gert::git_config_global_set("user.name", "yourUserName") gert::git_config_global_set("user.email", "yourEmail")
Backtrace: ▆
- └─animint2::animint2pages(viz, github_repo = "animint2pages_test_repo") at test-compiler-ghpages.R:26:3
- └─base::tryCatch(...)
-
└─base (local) tryCatchList(expr, classes, parentenv, handlers)
-
└─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
-
└─value[[3L]](cond)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]