New release? Old version of Rcpp blocking installation of precommit-hooks
I was wondering if it would be possible to release a new version? The latest (released, not development) version includes Rcpp 1.0.13 in the renv.lock as its dependency. This version had a bug (see the note in [release of 1.0.13-1](https://github.com/RcppCore/Rcpp/releases/tag/1.0.13-1) and the corresponding [change log](https://github.com/RcppCore/Rcpp/blob/release/1.0.13/ChangeLog)) which results in the following error upon `pre-commit install-hooks`:
```shell
In file included from barrier.cpp:31:
barrier.cpp: In function ‘SEXPREC** get_vector_ptr(SEXP)’:
../inst/include/Rcpp/r/compat.h:34:26: error: ‘VECTOR_PTR_RO’ was not declared in this scope; did you mean ‘VECTOR_PTR’?
34 | # define RCPP_VECTOR_PTR VECTOR_PTR_RO
| ^~~~~~~~~~~~~
barrier.cpp:74:30: note: in expansion of macro ‘RCPP_VECTOR_PTR’
74 | return const_cast<SEXP*>(RCPP_VECTOR_PTR(x)); // #nocov end
| ^~~~~~~~~~~~~~~
make: *** [/usr/lib64/R/etc/Makeconf:204: barrier.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
```
I noticed that since then, you have already updated dependencies, specifically in 5e6411958aa08fd950461b29577292f5c6660108 for Rcpp. However, version 0.4.3.9003 uses the problematic version of Rcpp and thus fails to install.
**Additional context**
- My operating system is:
- [x] My project uses {renv}.
- [x] the output of `packageVersion('renv')`: ‘1.0.11’
关闭于 2025-02-03 2 条评论