diff --git a/inst/include/Rcpp/vector/traits.h b/inst/include/Rcpp/vector/traits.h index ff27ef86a..b63732abe 100644 --- a/inst/include/Rcpp/vector/traits.h +++ b/inst/include/Rcpp/vector/traits.h @@ -79,8 +79,8 @@ namespace traits{ void update( const VECTOR& v ){ p = const_cast(&v) ; } - inline iterator get() const { check_index(0); return iterator( proxy(*p, 0 ) ) ;} - inline const_iterator get_const() const { check_index(0); return const_iterator( const_proxy(*p, 0) ) ; } + inline iterator get() const { return iterator( proxy(*p, 0 ) ) ;} + inline const_iterator get_const() const { return const_iterator( const_proxy(*p, 0) ) ; } inline proxy ref() { check_index(0); return proxy(*p,0) ; } inline proxy ref(R_xlen_t i) { check_index(i); return proxy(*p,i);} diff --git a/tests/tinytest.R b/tests/tinytest.R index f2480ee11..1540f9c8b 100644 --- a/tests/tinytest.R +++ b/tests/tinytest.R @@ -43,5 +43,5 @@ if (requireNamespace("tinytest", quietly=TRUE)) { ## there are several more granular ways to test files in a tinytest directory, ## see its package vignette; tests can also run once the package is installed ## using the same command `test_package(pkgName)`, or by director or file - tinytest::test_package("Rcpp", ncpu=getOption("Ncpus", 1)) + tinytest::test_package("Rcpp", ncpu=getOption("Ncpus")) }