-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[temporary fix] use devel renv #405
Conversation
this will help prevent failures until rstudio/renv#1156 is fixed.
A lot of the tests are failing for reasons which have to do with them somehow being unable to find rmarkdown. I believe the relevant details are in the bootstrapping: → Bootstrapping example lesson
→ Searching for and installing available dependencies
* Discovering package dependencies ... Done!
The following packages are used in this project, but not available locally:
rmarkdown
renv will attempt to download and install these packages.
* Hydrated 0 packages in 0.0048 milliseconds.
→ Recording changes in lockfile
The following package(s) will be updated in the lockfile:
# GitHub =============================
- renv [* -> rstudio/renv@HEAD]
The version of R recorded in the lockfile will be updated:
- R [* -> 4.2.2]
* Lockfile written to '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv.lock'.
ℹ Current RENV_PATHS_ROOT /home/runner/.local/share/renv
ℹ Current renv::paths$root() /home/runner/.local/share/renv
ℹ ↓ Example lesson in '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example'
ℹ ↑ Local remote in '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/REMOTE-319157ef954b' testthat failure logR version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(testthat)
> library(sandpaper)
>
> test_check("sandpaper")
→ Bootstrapping example lesson
→ Searching for and installing available dependencies
* Discovering package dependencies ... Done!
The following packages are used in this project, but not available locally:
rmarkdown
renv will attempt to download and install these packages.
* Hydrated 0 packages in 0.0048 milliseconds.
→ Recording changes in lockfile
The following package(s) will be updated in the lockfile:
# GitHub =============================
- renv [* -> rstudio/renv@HEAD]
The version of R recorded in the lockfile will be updated:
- R [* -> 4.2.2]
* Lockfile written to '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv.lock'.
ℹ Current RENV_PATHS_ROOT /home/runner/.local/share/renv
ℹ Current renv::paths$root() /home/runner/.local/share/renv
ℹ ↓ Example lesson in '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example'
ℹ ↑ Local remote in '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/REMOTE-319157ef954b'
i Consent for package cache revoked. Use `use_package_cache()` to undo.
→ Searching for and installing available dependencies
* Discovering package dependencies ... Done!
The following packages are used in this project, but not available locally:
rmarkdown
renv will attempt to download and install these packages.
* Hydrated 0 packages in 0.005 milliseconds.
→ Recording changes in lockfile
The following package(s) will be updated in the lockfile:
# GitHub =============================
- renv [* -> rstudio/renv@HEAD]
The version of R recorded in the lockfile will be updated:
- R [* -> 4.2.2]
* Lockfile written to '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file31912009ada3/lesson-init-example/renv/profiles/lesson-requirements/renv.lock'.
The following packages were discovered:
# ~/work/_temp/Library ===============
- R6 2.5.1
- bslib 0.4.2
- cachem 1.0.7
- digest 0.6.31
- ellipsis 0.3.2
- evaluate 0.20
- fastmap 1.1.1
- fs 1.6.1
- htmltools 0.5.4
- jquerylib 0.1.4
- jsonlite 1.8.4
- knitr 1.42
- memoise 2.0.1
- rappdirs 0.3.3
- rlang 1.0.6
- rmarkdown 2.20
- sass 0.4.5
- xfun 0.37
- yaml 2.3.7
They will be copied into the project library.
The following packages are used in this project, but not available locally:
base64enc, highr, mime, stringr, tinytex
renv will attempt to download and install these packages.
The following required packages are not installed:
base64enc [required by bslib, htmltools]
highr [required by knitr]
mime [required by bslib]
stringr [required by rmarkdown]
tinytex [required by rmarkdown]
Consider reinstalling these packages before snapshotting the lockfile.
The following package(s) will be updated:
# CRAN ===============================
- sessioninfo [repo: RSPM -> CRAN; ver: 1.1.0 -> 1.2.2]
The following required packages are not installed:
base64enc [required by bslib, htmltools]
highr [required by knitr]
mime [required by bslib]
stringr [required by rmarkdown]
tinytex [required by rmarkdown]
Consider reinstalling these packages before snapshotting the lockfile.
i Consent for package cache revoked. Use `use_package_cache()` to undo.
[ FAIL 31 | WARN 19 | SKIP 2 | PASS 728 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• I have no clue why this is only working some of the time :weary: (1)
• needs evaluation, but not critical infrastructure tool (1)
══ Warnings ════════════════════════════════════════════════════════════════════
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/digest/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/rappdirs/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/R6/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/jsonlite/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/evaluate/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/rlang/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/cachem/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/fs/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/jquerylib/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/bslib/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/ellipsis/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/rmarkdown/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/xfun/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/yaml/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/fastmap/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/memoise/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/htmltools/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/knitr/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
── Warning ('test-manage_deps.R:85'): manage_deps() will run without callr ─────
cannot open file '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/renv/profiles/lesson-requirements/renv/library/R-4.2/x86_64-pc-linux-gnu/sass/DESCRIPTION': No such file or directory
Backtrace:
1. base::suppressMessages(...)
at test-manage_deps.R:85:2
19. sandpaper:::callr_manage_deps(...)
20. renv::hydrate(...)
at sandpaper/R/utils-renv.R:257:4
21. renv:::renv_hydrate_filter(packages, library, update)
22. renv:::enumerate(...)
23. base::vapply(idx, callback, FUN.VALUE = FUN.VALUE)
24. renv (local) FUN(X[[i]], ...)
25. renv (local) f(n[[i]], x[[i]], ...)
32. renv:::renv_description_read(path = descpath)
33. renv:::filebacked(...)
34. renv (local) callback(path, ...)
35. renv:::renv_dcf_read(path, ...)
37. renv:::renv_dcf_read_impl(file, ...)
38. base::readBin(con = file, what = "raw", n = renv_file_size(file))
39. base::file(con, "rb")
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-build_lesson.R:12'): Lessons built for the first time are noisy ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_lesson.R:12:2
2. │ └─base::withCallingHandlers(...)
3. ├─testthat::expect_output(...) at test-build_lesson.R:13:4
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─testthat::capture_output_lines(code, print, width = width)
7. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
8. │ │ ├─withr::with_output_sink(path, withVisible(code))
9. │ │ │ └─base::force(code)
10. │ │ └─base::withVisible(code)
11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
12. └─sandpaper::build_lesson(tmp, preview = FALSE, quiet = FALSE)
13. └─sandpaper:::build_markdown(...) at sandpaper/R/build_lesson.R:94:2
14. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
15. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
16. └─callr:::get_result(output = out, options)
17. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_lesson.R:31'): (code run outside of `test_that()`) ───────
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to search directory '/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/site/docs': no such file or directory
Backtrace:
▆
1. └─sandpaper:::read_all_html(sitepath) at test-build_lesson.R:31:2
2. ├─fs::path_abs(fs::dir_ls(path, glob = "*.html", recurse = TRUE)) at sandpaper/R/utils-aggregate.R:26:2
3. │ └─fs::path_norm(path(getwd(), start))
4. └─fs::dir_ls(path, glob = "*.html", recurse = TRUE) at sandpaper/R/utils-aggregate.R:26:2
5. └─fs::dir_map(old, identity, all, recurse, type, fail)
── Error ('test-build_markdown.R:38'): markdown sources can be built without fail ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:38:2
2. │ └─base::withCallingHandlers(...)
3. ├─... %>% expect_output(processing_("second-episode.Rmd")) at test-build_markdown.R:39:4
4. ├─testthat::expect_output(., processing_("second-episode.Rmd"))
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─testthat::capture_output_lines(code, print, width = width)
8. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
9. │ │ ├─withr::with_output_sink(path, withVisible(code))
10. │ │ │ └─base::force(code)
11. │ │ └─base::withVisible(code)
12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
13. ├─testthat::expect_message(., "Consent to use package cache (provided|not given)")
14. │ └─testthat:::expect_condition_matching(...)
15. │ └─testthat:::quasi_capture(...)
16. │ ├─testthat (local) .capture(...)
17. │ │ └─base::withCallingHandlers(...)
18. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
19. └─sandpaper:::build_markdown(res, quiet = FALSE)
20. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
21. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
22. └─callr:::get_result(output = out, options)
23. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_markdown.R:64'): changes in config.yaml triggers a rebuild of the site yaml ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:64:2
2. │ └─base::withCallingHandlers(...)
3. ├─utils::capture.output(...) at test-build_markdown.R:65:4
4. │ └─base::withVisible(...elt(i))
5. ├─build_markdown(res, quiet = FALSE) %>% ... at test-build_markdown.R:66:6
6. ├─testthat::expect_message(., "nothing to rebuild")
7. │ └─testthat:::expect_condition_matching(...)
8. │ └─testthat:::quasi_capture(...)
9. │ ├─testthat (local) .capture(...)
10. │ │ └─base::withCallingHandlers(...)
11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
12. └─sandpaper:::build_markdown(res, quiet = FALSE)
13. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
14. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
15. └─callr:::get_result(output = out, options)
16. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_markdown.R:83'): markdown sources can be rebuilt without renv ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:83:2
2. │ └─base::withCallingHandlers(...)
3. ├─utils::capture.output(...) at test-build_markdown.R:84:4
4. │ └─base::withVisible(...elt(i))
5. ├─build_markdown(res, quiet = FALSE) %>% ... at test-build_markdown.R:85:6
6. ├─testthat::expect_message(., "nothing to rebuild")
7. │ └─testthat:::expect_condition_matching(...)
8. │ └─testthat:::quasi_capture(...)
9. │ ├─testthat (local) .capture(...)
10. │ │ └─base::withCallingHandlers(...)
11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
12. └─sandpaper:::build_markdown(res, quiet = FALSE)
13. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
14. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
15. └─callr:::get_result(output = out, options)
16. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_markdown.R:124'): modifying a file suffix will force the file to be rebuilt ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:124:2
2. │ └─base::withCallingHandlers(...)
3. └─sandpaper:::build_markdown(res, quiet = TRUE) at test-build_markdown.R:125:4
4. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
5. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
6. └─callr:::get_result(output = out, options)
7. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error (???): modifying a file suffix will force the file to be rebuilt ──────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. └─withr (local) `<fn>`(`<env>`)
── Failure ('test-build_markdown.R:159'): Artifacts are accounted for ──────────
c(folders, b)[c(6, 8, 10, 11, 12, 13, 14, 17)] absent from fs::path_file(a)
── Failure ('test-build_markdown.R:164'): Artifacts are accounted for ──────────
c(figs, b)[c(1, 2, 5, 7, 9, 10, 11, 12, 13, 16)] absent from fs::path_file(a)
── Error ('test-build_markdown.R:170'): Hashes are correct ─────────────────────
Error in `normalizePath(path, winslash = "/", mustWork = TRUE)`: path[1]="/tmp/RtmpP6kd7E/working_dir/Rtmp110wtf/file3191cb6a382/lesson-example/site/built/introduction.md": No such file or directory
Backtrace:
▆
1. └─sandpaper:::expect_hashed(res, "introduction.Rmd") at test-build_markdown.R:170:2
2. └─sandpaper:::get_hash(fs::path(path_built(path), md)) at tests/testthat/helper-hash.R:8:2
3. ├─sandpaper:::get_built_db(db, filter = "*") at sandpaper/R/utils-built-db.R:11:2
4. │ └─base::file.exists(db) at sandpaper/R/utils-built-db.R:28:2
5. ├─fs::path(path_built(path), "md5sum.txt") at sandpaper/R/utils-built-db.R:11:2
6. └─sandpaper:::path_built(path)
7. ├─fs::path(path_site(inpath), "built") at sandpaper/R/utils-paths.R:41:2
8. └─sandpaper:::path_site(inpath) at sandpaper/R/utils-paths.R:41:2
9. ├─fs::path(root_path(path), "site") at sandpaper/R/utils-paths.R:32:4
10. └─sandpaper:::root_path(path) at sandpaper/R/utils-paths.R:32:4
11. └─rprojroot::find_root(rprojroot::has_dir("episodes"), path) at sandpaper/R/utils-paths.R:2:2
12. └─rprojroot:::get_start_path(path, criterion$subdir)
13. └─base::normalizePath(path, winslash = "/", mustWork = TRUE)
── Error ('test-build_markdown.R:181'): Output is not commented ────────────────
Error in ``[[.default`(built, built_file)`: attempt to select less than one element in get1index
Backtrace:
▆
1. ├─base::trimws(readLines(built[[built_file]])) at test-build_markdown.R:181:2
2. │ ├─base (local) mysub(...)
3. │ │ └─base::sub(re, "", x, perl = TRUE)
4. │ │ └─base::is.factor(x)
5. │ └─base (local) mysub(paste0("^", whitespace, "+"), x)
6. │ └─base::sub(re, "", x, perl = TRUE)
7. │ └─base::is.factor(x)
8. ├─base::readLines(built[[built_file]])
9. ├─built[[built_file]]
10. ├─fs:::`[[.fs_path`(built, built_file)
11. │ └─fs:::new_fs_path(NextMethod("["))
12. └─base::NextMethod("[")
── Error ('test-build_markdown.R:198'): Markdown rendering does not happen if content is not changed ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:198:2
2. │ └─base::withCallingHandlers(...)
3. ├─testthat::expect_message(...) at test-build_markdown.R:199:4
4. │ └─testthat:::expect_condition_matching(...)
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─base::withCallingHandlers(...)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. ├─utils::capture.output(build_markdown(res))
10. │ └─base::withVisible(...elt(i))
11. └─sandpaper:::build_markdown(res)
12. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
13. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
14. └─callr:::get_result(output = out, options)
15. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_markdown.R:218'): Removing source removes built ──────────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. └─sandpaper:::build_markdown(res, quiet = TRUE) at test-build_markdown.R:218:2
2. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
3. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
4. └─callr:::get_result(output = out, options)
5. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-build_markdown.R:241'): old md5sum.txt db will work ────────────
Error in `data.frame(old, list(date = date), stringsAsFactors = FALSE)`: arguments imply differing number of rows: 0, 1
Backtrace:
▆
1. └─sandpaper:::build_status(sources, db_path, rebuild = FALSE, write = FALSE) at test-build_markdown.R:241:2
2. └─base::data.frame(old, list(date = date), stringsAsFactors = FALSE) at sandpaper/R/utils-built-db.R:162:2
── Failure ('test-build_markdown.R:270'): dates are preserved in md5sum.txt ────
newdb$new$date (`actual`) not equal to db$date (`expected`).
actual | expected
[1] "2023-03-07" -
[2] "2023-03-07" -
[3] "2023-03-07" -
[4] "2023-03-07" -
[5] "2023-03-07" -
[6] "2023-03-07" -
[7] "2023-03-07" -
[8] "2023-03-07" -
[9] "2023-03-07" -
[10] "2023-03-07" -
[11] "2023-03-07" -
[12] "2023-03-07" -
── Error ('test-build_markdown.R:278'): Removing partially matching slugs will not have side-effects ──
Error in `data.frame(old, list(date = date), stringsAsFactors = FALSE)`: arguments imply differing number of rows: 0, 1
Backtrace:
▆
1. └─sandpaper:::build_markdown(res, quiet = TRUE) at test-build_markdown.R:278:2
2. └─sandpaper:::build_status(sources, db_path, rebuild, write = FALSE) at sandpaper/R/build_markdown.R:59:2
3. └─base::data.frame(old, list(date = date), stringsAsFactors = FALSE) at sandpaper/R/utils-built-db.R:162:2
── Error ('test-build_markdown.R:323'): setting `fail_on_error: true` in config will cause build to fail ──
Error in `data.frame(old, list(date = date), stringsAsFactors = FALSE)`: arguments imply differing number of rows: 0, 1
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-build_markdown.R:323:2
2. │ └─base::withCallingHandlers(...)
3. ├─utils::capture.output(...) at test-build_markdown.R:324:4
4. │ └─base::withVisible(...elt(i))
5. ├─... %>% expect_error("in the name of love") at test-build_markdown.R:325:6
6. ├─testthat::expect_error(., "in the name of love")
7. │ └─testthat:::expect_condition_matching(...)
8. │ └─testthat:::quasi_capture(...)
9. │ ├─testthat (local) .capture(...)
10. │ │ └─base::withCallingHandlers(...)
11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
12. ├─testthat::expect_message(., "use error=TRUE")
13. │ └─testthat:::expect_condition_matching(...)
14. │ └─testthat:::quasi_capture(...)
15. │ ├─testthat (local) .capture(...)
16. │ │ └─base::withCallingHandlers(...)
17. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
18. └─sandpaper:::build_markdown(res, quiet = FALSE)
19. └─sandpaper:::build_status(sources, db_path, rebuild, write = FALSE) at sandpaper/R/build_markdown.R:59:2
20. └─base::data.frame(old, list(date = date), stringsAsFactors = FALSE) at sandpaper/R/utils-built-db.R:162:2
── Error ('test-ci_deploy.R:21'): ci_deploy() will deploy once ─────────────────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-ci_deploy.R:21:2
2. │ └─base::withCallingHandlers(...)
3. ├─utils::capture.output(...) at test-ci_deploy.R:22:2
4. │ └─base::withVisible(...elt(i))
5. └─sandpaper:::ci_deploy(...) at test-ci_deploy.R:23:4
6. └─sandpaper:::ci_build_markdown(...) at sandpaper/R/ci_deploy.R:138:2
7. ├─withr::with_dir(...) at sandpaper/R/ci_build.R:67:32
8. │ └─base::force(code)
9. └─sandpaper:::build_markdown(path = path, quiet = FALSE, rebuild = FALSE) at sandpaper/R/ci_build.R:80:4
10. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
11. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
12. └─callr:::get_result(output = out, options)
13. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Failure ('test-ci_deploy.R:51'): ci_deploy() will fetch sources from upstream ──
gert::git_branch_exists("SITE", local = TRUE, repo = res) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-ci_deploy.R:56'): ci_deploy() will fetch sources from upstream ──
Error in `gert::git_branch_checkout("SITE", repo = res)`: No local or remote branch 'SITE' found.
Backtrace:
▆
1. └─gert::git_branch_checkout("SITE", repo = res) at test-ci_deploy.R:56:2
── Failure ('test-ci_deploy.R:102'): ci_deploy() will do a full rebuild ────────
gert::git_branch_exists("SITE", local = TRUE, repo = res) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-ci_deploy.R:105'): ci_deploy() will do a full rebuild ──────────
<GIT_ERROR/libgit2_error/error/condition>
Error in `libgit2::git_branch_delete`: Cannot delete branch 'refs/heads/MD' as it is the current HEAD of a linked repository.
Backtrace:
▆
1. ├─gert::git_branch_delete("MD", repo = res) at test-ci_deploy.R:105:2
2. └─gert:::raise_libgit2_error(...)
── Error ('test-manage_deps.R:59'): manage_deps() will create a renv folder ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called ‘knitr’
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-manage_deps.R:59:2
2. │ └─base::withCallingHandlers(...)
3. ├─... %>% expect_output("Lockfile written to") at test-manage_deps.R:60:4
4. ├─testthat::expect_output(., "Lockfile written to")
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─testthat::capture_output_lines(code, print, width = width)
8. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
9. │ │ ├─withr::with_output_sink(path, withVisible(code))
10. │ │ │ └─base::force(code)
11. │ │ └─base::withVisible(code)
12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
13. ├─testthat::expect_message(., "Consent to use package cache provided")
14. │ └─testthat:::expect_condition_matching(...)
15. │ └─testthat:::quasi_capture(...)
16. │ ├─testthat (local) .capture(...)
17. │ │ └─base::withCallingHandlers(...)
18. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
19. └─sandpaper:::build_markdown(lsn, quiet = FALSE)
20. └─sandpaper::build_episode_md(...) at sandpaper/R/build_markdown.R:109:6
21. └─callr::r(...) at sandpaper/R/build_episode.R:247:2
22. └─callr:::get_result(output = out, options)
23. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test-manage_deps.R:85'): manage_deps() will run without callr ───────
Error in `renv::snapshot(project = path, lockfile = renv_lock, prompt = FALSE)`: aborting snapshot due to pre-flight validation failure
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-manage_deps.R:85:2
2. │ └─base::withCallingHandlers(...)
3. ├─... %>% expect_output("package dependencies") at test-manage_deps.R:86:2
4. ├─testthat::expect_output(., "package dependencies")
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─testthat::capture_output_lines(code, print, width = width)
8. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
9. │ │ ├─withr::with_output_sink(path, withVisible(code))
10. │ │ │ └─base::force(code)
11. │ │ └─base::withVisible(code)
12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
13. ├─testthat::expect_message(., "Restoring any dependency versions")
14. │ └─testthat:::expect_condition_matching(...)
15. │ └─testthat:::quasi_capture(...)
16. │ ├─testthat (local) .capture(...)
17. │ │ └─base::withCallingHandlers(...)
18. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
19. └─sandpaper:::callr_manage_deps(...)
20. └─renv::snapshot(project = path, lockfile = renv_lock, prompt = FALSE) at sandpaper/R/utils-renv.R:291:4
── Failure ('test-manage_deps.R:106'): renv will not trigger a rebuild when nothing changes ──
renv_should_rebuild(...) is not FALSE
`actual`: TRUE
`expected`: FALSE
── Failure ('test-manage_deps.R:115'): renv will not trigger a rebuild when nothing changes ──
lh$old (`actual`) not equal to lh$new (`expected`).
`actual`:
`expected`: "c851a78ecf5417b5d51f56cb88854259"
── Failure ('test-manage_deps.R:118'): renv will not trigger a rebuild when nothing changes ──
renv_should_rebuild(lsn, rebuild = FALSE, db_path, profile) is not FALSE
`actual`: TRUE
`expected`: FALSE
── Error ('test-manage_deps.R:146'): pin_version() will use_specific versions ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `renv::snapshot(project = path, lockfile = renv_lock, prompt = FALSE)`:
! aborting snapshot due to pre-flight validation failure
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-manage_deps.R:146:2
2. │ └─base::withCallingHandlers(...)
3. ├─testthat::expect_output(res <- manage_deps(lsn), "withr") at test-manage_deps.R:149:4
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─testthat::capture_output_lines(code, print, width = width)
7. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
8. │ │ ├─withr::with_output_sink(path, withVisible(code))
9. │ │ │ └─base::force(code)
10. │ │ └─base::withVisible(code)
11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
12. └─sandpaper::manage_deps(lsn)
13. └─callr::r(...) at sandpaper/R/manage_deps.R:86:2
14. └─callr:::get_result(output = out, options)
15. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Failure ('test-manage_deps.R:172'): Package cache changes will trigger a rebuild ──
lh$old == lh$new is not FALSE
`actual`:
`expected`: FALSE
── Failure ('test-manage_deps.R:183'): Package cache changes will trigger a rebuild ──
lh$old == lh$new is not FALSE
`actual`:
`expected`: FALSE
── Error ('test-manage_deps.R:200'): update_cache() will update old package versions ──
Error in `renv::snapshot(lockfile = renv::paths$lockfile(project = path),
prompt = FALSE)`: aborting snapshot due to pre-flight validation failure
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-manage_deps.R:200:2
2. │ └─base::withCallingHandlers(...)
3. ├─... %>% expect_output("sessioninfo") at test-manage_deps.R:201:4
4. ├─testthat::expect_output(., "sessioninfo")
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─testthat::capture_output_lines(code, print, width = width)
8. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
9. │ │ ├─withr::with_output_sink(path, withVisible(code))
10. │ │ │ └─base::force(code)
11. │ │ └─base::withVisible(code)
12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
13. └─sandpaper::update_cache(...)
14. └─renv::snapshot(...) at sandpaper/R/manage_deps.R:136:4 [ FAIL 31 | WARN 19 | SKIP 2 | PASS 728 ] |
I think the package may contain detritus from the leftover renv session. Using force will remove it for me.
This reverts commit 0835b09.
this will help prevent failures until rstudio/renv#1156 is fixed.
This will address #406 (though the issue will be closed once the patched version of {renv} is on CRAN)