Unable to install the package
**Before filing a bug**
- [ ] I have installed the latest dev version of {precommit} with `remotes::install_github('lorenzwalthert/precommit')`
- [ ] I have installed the latest hook revisions (update with `precommit::autoupdate()`)
- [ ] I have installed the latest release of the upstream Python framework pre-comit as described under the [update instructions](https://lorenzwalthert.github.io/precommit/dev/articles/precommit.html#update).
**Describe the bug**
```bash
also installing the dependencies ‘glue’, ‘lifecycle’, ‘vctrs’, ‘digest’, ‘cli’, ‘magrittr’, ‘purrr’, ‘R.cache’, ‘rlang’, ‘yaml’
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/glue_1.8.0.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/lifecycle_1.0.4.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/vctrs_0.6.5.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/digest_0.6.37.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/cli_3.6.5.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/magrittr_2.0.3.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/purrr_1.0.4.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/R.cache_0.17.0.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/rlang_1.1.6.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/yaml_2.3.10.tar.gz'
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/precommit_0.4.3.tar.gz'
* installing *source* package ‘glue’ ...
** this is package ‘glue’ version ‘1.8.0’
** package ‘glue’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fvisibility=hidden -fPIC -g -O2 -c glue.c -o glue.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [glue.o] Error 1
ERROR: compilation failed for package ‘glue’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/glue’
* installing *source* package ‘digest’ ...
** this is package ‘digest’ version ‘0.6.37’
** package ‘digest’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I. -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c SpookyV2.cpp -o SpookyV2.o
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I. -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c aes.c -o aes.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [aes.o] Error 1
ERROR: compilation failed for package ‘digest’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/digest’
* installing *source* package ‘cli’ ...
** this is package ‘cli’ version ‘3.6.5’
** package ‘cli’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I../inst/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fvisibility=hidden -fPIC -g -O2 -c ansi.c -o ansi.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [ansi.o] Error 1
ERROR: compilation failed for package ‘cli’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/cli’
* installing *source* package ‘magrittr’ ...
** this is package ‘magrittr’ version ‘2.0.3’
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c pipe.c -o pipe.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [pipe.o] Error 1
ERROR: compilation failed for package ‘magrittr’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/magrittr’
* installing *source* package ‘rlang’ ...
** this is package ‘rlang’ version ‘1.1.6’
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I./rlang/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fvisibility=hidden -fPIC -g -O2 -c capture.c -o capture.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [capture.o] Error 1
ERROR: compilation failed for package ‘rlang’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/rlang’
* installing *source* package ‘yaml’ ...
** this is package ‘yaml’ version ‘2.3.10’
** package ‘yaml’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
using SDK: ‘MacOSX15.5.sdk’
clang -std=gnu23 -I"/opt/homebrew/Cellar/r/4.5.0_1/lib/R/include" -DNDEBUG -I. -DNDEBUG -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c api.c -o api.o
error: invalid value 'gnu23' in '-std=gnu23'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
make: *** [api.o] Error 1
ERROR: compilation failed for package ‘yaml’
* removing ‘/opt/homebrew/lib/R/4.5/site-library/yaml’
ERROR: dependencies ‘cli’, ‘glue’, ‘rlang’ are not available for package ‘lifecycle’
Perhaps try a variation of:
install.packages(c('cli', 'glue', 'rlang'))
* removing ‘/opt/homebrew/lib/R/4.5/site-library/lifecycle’
ERROR: dependency ‘digest’ is not available for package ‘R.cache’
Perhaps try a variation of:
install.packages('digest')
* removing ‘/opt/homebrew/lib/R/4.5/site-library/R.cache’
ERROR: dependencies ‘cli’, ‘glue’, ‘lifecycle’, ‘rlang’ are not available for package ‘vctrs’
Perhaps try a variation of:
install.packages(c('cli', 'glue', 'lifecycle', 'rlang'))
* removing ‘/opt/homebrew/lib/R/4.5/site-library/vctrs’
ERROR: dependencies ‘cli’, ‘lifecycle’, ‘magrittr’, ‘rlang’, ‘vctrs’ are not available for package ‘purrr’
Perhaps try a variation of:
install.packages(c('cli', 'lifecycle', 'magrittr', 'rlang', 'vctrs'))
* removing ‘/opt/homebrew/lib/R/4.5/site-library/purrr’
ERROR: dependencies ‘cli’, ‘magrittr’, ‘purrr’, ‘R.cache’, ‘rlang’, ‘yaml’ are not available for package ‘precommit’
Perhaps try a variation of:
install.packages(c('cli', 'magrittr', 'purrr', 'R.cache', 'rlang', 'yaml'))
* removing ‘/opt/homebrew/lib/R/4.5/site-library/precommit’
The downloaded source packages are in
‘/private/var/folders/zw/ldmz44ln4gx381xx4c_6stym0000gr/T/RtmpaJ6J7L/downloaded_packages’
There were 11 warnings (use warnings() to see them)
```
**Additional context**
- My operating system is: macOS
关闭于 2025-06-09 2 条评论