Comments (15)
Thanks for the detailed report.
These packages then fail to build because there is no make utility in the Miniconda environment.
I don't see that this is the problem from the logs. Do you have more evidence for that? In particular, the r-precommit
conda environment is only used for Python related dependencies, not the R packages. For R, {renv} is used.
so attempts are made to install from source.
Not clear, I think we explicitly want to use binaries only where the respective options are set: source code. So if they are not available, no source installation is attempted and probably installation fails. Maybe this should be relaxed.
but to no avail, same error digest dependency is not available.
I edited the wiki, please install digest
manually with renv::install()
as described in the wiki, no matter whether renv::purge()
works.
from precommit.
Actually you would be a good case to try this out. Can you install the lorenzwalthert-patch1
branch of my fork without the binary restriction of the pre-commit package in your r-precommit
environment and tell me if the problems persist? if that's too hard, I can help out. Something like
conda acticate r-precommit
pip install -e git+https://github.com/lorenzwalthert/pre-commit.git@lorenzwalthert-patch-1#egg=pre-commit
from precommit.
Hi @lorenzwalthert ,
Thanks for the prompt reply, I'll give this a whirl and let you know how I get on.
I'll clear everything out and get a log reporting that make
can't be found then try your branch out.
Will let you know if I get stuck and need help,
Thanks,
from precommit.
Ok, here's a log using R-4.3.1
where precommit
is failing because it can't find make
. I set things up running the following commands...
install.packages(c("remotes", "reticulate"))
remotes::install_github("lorenzwalthert/precommit", force = TRUE)
options(timeout=600)
reticulate::install_miniconda()
precommit::install_precommit()
precommit::autoupdate()
precommit::use_precommit(install_hooks = TRUE)
Then making some changes and trying to commit them.
version information
pre-commit version: 3.3.3
git --version: git version 2.41.0.windows.3
sys.version:
3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:28:38) [MSC v.1929 64 bit (AMD64)]
sys.executable: C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\python.exe
os.name: nt
sys.platform: win32
error information
An unexpected error has occurred: CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpt34hgeu1\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
Traceback (most recent call last):
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\error_handler.py", line 73, in error_handler
yield
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\main.py", line 386, in main
return hook_impl(
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\commands\hook_impl.py", line 271, in hook_impl
return retv | run(config, store, ns)
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\commands\run.py", line 442, in run
install_hook_envs(to_install, store)
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\repository.py", line 248, in install_hook_envs
_hook_install(hook)
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\repository.py", line 95, in _hook_install
lang.install_environment(
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\languages\r.py", line 148, in install_environment
cmd_output_b(_rscript_exec(), '--vanilla', f, cwd=env_dir)
File "C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\lib\site-packages\pre_commit\util.py", line 110, in cmd_output_b
raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpt34hgeu1\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
sessionInfo()
> sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8
[2] LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
loaded via a namespace (and not attached):
[1] digest_0.6.33 Matrix_1.6-0
[3] lattice_0.21-8 magrittr_2.0.3
[5] reticulate_1.30 rappdirs_0.3.3
[7] remotes_2.4.2.1 R.utils_2.12.2
[9] png_0.1-8 lifecycle_1.0.3
[11] cli_3.6.1 R.methodsS3_1.8.2
[13] vctrs_0.6.3 grid_4.3.1
[15] withr_2.5.0 precommit_0.3.2.9014
[17] compiler_4.3.1 rprojroot_2.0.3
[19] here_1.0.1 R.oo_1.25.0
[21] R.cache_0.16.0 purrr_1.0.1
[23] rstudioapi_0.15.0 tools_4.3.1
[25] yaml_2.3.7 Rcpp_1.0.11
[27] fs_1.6.3 rlang_1.1.1
[29] jsonlite_1.8.7
I'll give the branch a whirl now and see how I get on.
from precommit.
I had to use the --user
flag to install the fork but it installed.
(r-precommit) PS C:\Users\nshep> pip install --user -e git+https://github.com/lorenzwalthert/pre-commit.git@lorenzwalthert-patch-1#egg=pre-commit
Obtaining pre-commit from git+https://github.com/lorenzwalthert/pre-commit.git@lorenzwalthert-patch-1#egg=pre-commit
Updating c:\users\nshep\src\pre-commit clone (to revision lorenzwalthert-patch-1)
Running command git fetch -q --tags
Running command git reset --hard -q 594e9cce77f8e6538b9ce5085c4233994d44d80a
Preparing metadata (setup.py) ... done
Requirement already satisfied: cfgv>=2.0.0 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from pre-commit) (3.3.1)
Requirement already satisfied: identify>=1.0.0 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from pre-commit) (2.5.26)
Requirement already satisfied: nodeenv>=0.11.1 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from pre-commit) (1.8.0)
Requirement already satisfied: pyyaml>=5.1 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from pre-commit) (6.0)
Requirement already satisfied: virtualenv>=20.10.0 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from pre-commit) (20.24.2)
Requirement already satisfied: setuptools in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from nodeenv>=0.11.1->pre-commit) (68.0.0)
Requirement already satisfied: distlib<1,>=0.3.7 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from virtualenv>=20.10.0->pre-commit) (0.3.7)
Requirement already satisfied: filelock<4,>=3.12.2 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from virtualenv>=20.10.0->pre-commit) (3.12.2)
Requirement already satisfied: platformdirs<4,>=3.9.1 in c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages (from virtualenv>=20.10.0->pre-commit) (3.9.1)
Installing collected packages: pre-commit
Running setup.py develop for pre-commit
Successfully installed pre-commit
Not entirely sure if it will has been used though, from R-4.3.1
if I try and make another commit I get the same error (~/.cache/pre-commit/pre-commit.log
).
I notice also there is a cURL error in both about a 400 for a URL.
I'll now try again with R-4.2.1 and the patched pre-commit
.
version information
pre-commit version: 3.3.3
git --version: git version 2.41.0.windows.3
sys.version:
3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:28:38) [MSC v.1929 64 bit (AMD64)]
sys.executable: C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\python.exe
os.name: nt
sys.platform: win32
error information
An unexpected error has occurred: CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpryxk06zx\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
Traceback (most recent call last):
File "c:\users\nshep\src\pre-commit\pre_commit\error_handler.py", line 73, in error_handler
yield
File "c:\users\nshep\src\pre-commit\pre_commit\main.py", line 386, in main
return hook_impl(
File "c:\users\nshep\src\pre-commit\pre_commit\commands\hook_impl.py", line 271, in hook_impl
return retv | run(config, store, ns)
File "c:\users\nshep\src\pre-commit\pre_commit\commands\run.py", line 442, in run
install_hook_envs(to_install, store)
File "c:\users\nshep\src\pre-commit\pre_commit\repository.py", line 248, in install_hook_envs
_hook_install(hook)
File "c:\users\nshep\src\pre-commit\pre_commit\repository.py", line 95, in _hook_install
lang.install_environment(
File "c:\users\nshep\src\pre-commit\pre_commit\languages\r.py", line 148, in install_environment
cmd_output_b(_rscript_exec(), '--vanilla', f, cwd=env_dir)
File "c:\users\nshep\src\pre-commit\pre_commit\util.py", line 110, in cmd_output_b
raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpryxk06zx\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
version information
pre-commit version: 3.3.3
git --version: git version 2.41.0.windows.3
sys.version:
3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:28:38) [MSC v.1929 64 bit (AMD64)]
sys.executable: C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\python.exe
os.name: nt
sys.platform: win32
error information
An unexpected error has occurred: CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpryxk06zx\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
Traceback (most recent call last):
File "c:\users\nshep\src\pre-commit\pre_commit\error_handler.py", line 73, in error_handler
yield
File "c:\users\nshep\src\pre-commit\pre_commit\main.py", line 386, in main
return hook_impl(
File "c:\users\nshep\src\pre-commit\pre_commit\commands\hook_impl.py", line 271, in hook_impl
return retv | run(config, store, ns)
File "c:\users\nshep\src\pre-commit\pre_commit\commands\run.py", line 442, in run
install_hook_envs(to_install, store)
File "c:\users\nshep\src\pre-commit\pre_commit\repository.py", line 248, in install_hook_envs
_hook_install(hook)
File "c:\users\nshep\src\pre-commit\pre_commit\repository.py", line 95, in _hook_install
lang.install_environment(
File "c:\users\nshep\src\pre-commit\pre_commit\languages\r.py", line 148, in install_environment
cmd_output_b(_rscript_exec(), '--vanilla', f, cwd=env_dir)
File "c:\users\nshep\src\pre-commit\pre_commit\util.py", line 110, in cmd_output_b
raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('C:/PROGRA~1/R/R-43~1.1\\bin\\Rscript.exe', '--vanilla', 'C:\\Users\\nshep\\AppData\\Local\\Temp\\tmpryxk06zx\\script.R')
return code: 1
stdout:
ℹ Using R 4.3.1 (lockfile was generated with R 4.2.1)
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/digest/digest_0.6.31.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/Rcpp/Rcpp_1.0.9.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/processx/processx_3.8.0.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/ps/ps_1.7.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/cli/cli_3.4.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/commonmark/commonmark_1.8.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/fs/fs_1.5.2.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/git2r/git2r_0.30.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xfun/xfun_0.35.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/jsonlite/jsonlite_1.8.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/rlang/rlang_1.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/stringi/stringi_1.7.8.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/vctrs/vctrs_0.5.1.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/yaml/yaml_2.3.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/xml2/xml2_1.3.3.tar.gz' ...
OK [file is up to date]
Retrieving 'https://packagemanager.rstudio.com/all/latest/src/contrib/Archive/purrr/purrr_0.3.5.tar.gz' ...
OK [file is up to date]
Installing codetools [0.2-18] ...
OK [linked cache]
Installing R.methodsS3 [1.8.2] ...
OK [linked cache]
Installing R.oo [1.25.0] ...
OK [linked cache]
Installing R.utils [2.12.2] ...
OK [linked cache]
Installing digest [0.6.31] ...
FAILED
Error installing package 'digest':
==================================
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
'make' not found
* removing 'C:/Users/nshep/.cache/pre-commit/repowuegcsa3/renv-default/renv/staging/1/digest'
stderr:
# Bootstrapping renv 0.16.0 --------------------------------------------------
* Downloading renv 0.16.0 ... OK
* Installing renv 0.16.0 ... Done!
* Successfully installed and loaded renv 0.16.0.
The following package(s) will be updated:
# CRAN ===============================
- R.cache [* -> 0.16.0]
# RSPM ===============================
- codetools [repo: CRAN -> RSPM; ver: 0.2-19 -> 0.2-18]
- R.methodsS3 [* -> 1.8.2]
- R.oo [* -> 1.25.0]
- R.utils [* -> 2.12.2]
- R6 [* -> 2.5.1]
- Rcpp [* -> 1.0.9]
- backports [* -> 1.4.1]
- brew [* -> 1.0-8]
- callr [* -> 3.7.3]
- cli [* -> 3.4.1]
- commonmark [* -> 1.8.1]
- cpp11 [* -> 0.4.3]
- crayon [* -> 1.5.2]
- cyclocomp [* -> 1.1.0]
- desc [* -> 1.4.2]
- digest [* -> 0.6.31]
- docopt [* -> 0.7.1]
- evaluate [* -> 0.19]
- fs [* -> 1.5.2]
- git2r [* -> 0.30.1]
- glue [* -> 1.6.2]
- here [* -> 1.0.1]
- highr [* -> 0.9]
- hunspell [* -> 3.0.2]
- jsonlite [* -> 1.8.4]
- knitr [* -> 1.41]
- lazyeval [* -> 0.2.2]
- lifecycle [* -> 1.0.3]
- lintr [* -> 3.0.2]
- magrittr [* -> 2.0.3]
- pkgload [* -> 1.3.2]
- processx [* -> 3.8.0]
- ps [* -> 1.7.2]
- purrr [* -> 0.3.5]
- remotes [* -> 2.4.2]
- rex [* -> 1.2.1]
- rlang [* -> 1.0.6]
- roxygen2 [* -> 7.2.3]
- rprojroot [* -> 2.0.3]
- spelling [* -> 2.2]
- stringi [* -> 1.7.8]
- stringr [* -> 1.5.0]
- vctrs [* -> 0.5.1]
- withr [* -> 2.5.0]
- xfun [* -> 0.35]
- xml2 [* -> 1.3.3]
- xmlparsedata [* -> 1.0.5]
- yaml [* -> 2.3.6]
# Repository =========================
- styler [* -> 1.10.0]
Error: install of package 'digest' failed [error code 1]
In addition: Warning message:
curl: (22) The requested URL returned error: 400
Traceback (most recent calls last):
12: renv::restore()
11: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Execution halted
from precommit.
I don't think I installed your branch correctly using the --user
flag as I used pip
which appeared to install it under C:\Users\nshep\AppData\Roaming\Python\Python39\Scripts>
rather than the r-precommit
environment.
Having realised this I've tried again using pip3
(and verified that it was using the version from the r-precommit
install with where pip3
) I get a permissions denied on the r-precommit
mininconda environment.
(r-precommit) > which python
/c/Users/nshep/AppData/Local/r-miniconda/envs/r-precommit/python
(r-precommit) > which pip3
/c/Users/nshep/AppData/Local/r-miniconda/envs/r-precommit/Scripts/pip3
(r-precommit) > pip3 install -e git+https://github.com/lorenzwalthert/pre-commit.git@lorenzwalthert-patch-1#egg=pre-commit
...
Creating c:\users\nshep\appdata\local\r-miniconda\envs\r-precommit\lib\site-packages\pre-commit.egg-link (link to .)
Adding pre-commit 3.3.3 to easy-install.pth file
Installing pre-commit-script.py script to C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\Scripts
Installing pre-commit.exe script to C:\Users\nshep\AppData\Local\r-miniconda\envs\r-precommit\Scripts
error: [WinError 5] Access is denied: 'C:\\Users\\nshep\\AppData\\Local\\r-miniconda\\envs\\r-precommit\\Scripts\\pre-commit.exe'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Could you advise how to proceed with the install?
I'm also not convinced I'm installing digest
correctly. Even though I'm starting the project from ~/.cache/pre-commit/precommit.Rproj
it installs it to the global/system install location rather than under project directory (this may be a misunderstanding on my behalf of how and where renv
installs things).
> renv::install("digest")
The following package(s) will be installed:
- digest [0.6.33]
These packages will be installed into "C:/Users/nshep/AppData/Local/R/win-library/4.3".
Do you want to proceed? [Y/n]: y
# Installing packages ---------------------------------------
- Installing digest ... OK [copied from cache in 0.26s]
Successfully installed 1 package in 0.33 seconds.
from precommit.
Ok, I think at least we know with the current Python package pre-commit, a source installation is attempted if no binary is available, which is good.
Because official CRAN mirrors as well as the Posit Package manger only keep the latest binary version of a package, and the latest version is > 0.6.31, you have no luck installing. You can check that by trying to find this URL
https://cran.r-project.org/bin/windows/contrib/4.3/digest_0.6.31.zip
Which will fail, but if you use the latest version of a package
https://cran.r-project.org/bin/windows/contrib/4.3/digest_0.6.33.zip
Similarly, for the Posit Package manager: https://packagemanager.posit.co/cran/latest/bin/windows/contrib/4.3/digest_0.6.33.zip.
Hence, the solution is that I must more frequently update the hook revisions such that all dependencies in renv.lock
are up to date. I even created a GitHub Actions workflow to do that but for some reason, it does not work not work correctly: #433. If you want to work around the problem on your side, make
needs to be on the PATH
.
I'm also not convinced I'm installing digest correctly.
Yes, but that's not the version {precommit} wants, since the command will install the latest release and we need 0.6.31.
from precommit.
I will try to release a new hook version later today or before the end of the week.
from precommit.
Thanks @lorenzwalthert I spent some time going through renv.lock
and updating the package versions by hand.
For some reason
renv::update()
renv::snapshot()
didn't update them as I expected them to (lost the record of what now).
Anyway, updating by hand the package versions was progress but I then hit another problem (lost the logs now as I'm doing this in Windows hosted in a VM and shut it down).
from precommit.
Oh yes, please let me know if there is anything I can do to help, e.g. with testing and so forth.
from precommit.
Thanks @lorenzwalthert I spent some time going through renv.lock and updating the package versions by hand.
Well no I use renv::update()
(actually a bit more complicated but that's the basic operation).
didn't update them as I expected them to (lost the record of what now).
Wel that would be a hack anyways.
from precommit.
@ns-rse I created the hook release v0.3.2.9015. Please precommit::autoupdate()
or pre-commit autoupdate
and let's see if it works.
from precommit.
Back on this project today and have tested v0.3.2.9015
and no issues at all now, all the R packages install fine and in a small test the subset of hooks that are triggered (spell-check
, readme-rmd-rendered
) both run ok.
Thank you so much @lorenzwalthert really appreciate how quickly you've addressed this 👍
from precommit.
Great. Thanks. We’ll have to make sure we can regularly update the dependencies, in particular those with system requirements in #433.
from precommit.
Also, you can sponsert me one time or recurrent on GitHub sponsors if you find my work useful.
from precommit.
Related Issues (20)
- Allow alternative spellcheck dictionary files HOT 9
- xfun-0.40 fails to build under Windows HOT 3
- Use frozen PPM snapshots
- specific package not available from MRAN - what would be the next step? HOT 4
- Failure with dev (now CRAN) roxygen2 HOT 1
- Executable `Rscript` not found in VS Code HOT 11
- Convoluted hook testing infra
- Failure with dev pkgdown HOT 5
- New hook: parsable-roxygen HOT 2
- Integration test hook dependency test fails on R 4.4
- `pip install pre-commit --user` gives error in CI on macOS
- Changing the R version breaks the pre-commit cache
- Add `.qmd` files to lintr hook
- Parallel execution of `style-files` hook causes race condition in styler `.onLoad` function HOT 1
- Use `spelling::update_wordlist()` instead of custom logic to update the wordlist for spell check
- Environment setup fails due to a hardcoded snapshot RSPM link in renv.lock HOT 6
- Failure with recently released pkgdown HOT 1
- How do I wrap markdown in my .qmd files? HOT 5
- Reduce CRAN check time for Windows HOT 1
- Check roxygen code example as well with deps-in-desc hook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from precommit.