Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

tests fail

Aperta
#419 11 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp, r

Direzione di ricerca

Start with 00check.log and reproduce the R CMD check on the reported FreeBSD and R 4.4.2 environment. Inspect the failing FAQ.Rmd, cpp11.Rmd, and motivations.Rmd vignette runs; done means all three complete without missing-function errors and the check no longer reports an ERROR.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Trying to find if a missing dependency is causing testunit to fail.
Tested on 0.5.0 and 0.5.1.

Any clues?

Thanks

> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: amd64-portbld-freebsd15.0
Running under: FreeBSD 15amd64-main 15.0-CURRENT FreeBSD 15.0-CURRENT 1500028 amd64

Matrix products: default
LAPACK: /usr/local/lib/R/lib/libRlapack.so;  LAPACK version 3.12.0

locale:
[1] C.UTF-8/C.UTF-8/C.UTF-8/C/C.UTF-8/C.UTF-8

time zone: Europe/Lisbon
tzcode source: system (FreeBSD)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.4.2
<snip>
* checking examples ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ...
  'FAQ.Rmd' using 'UTF-8'... failed
  'converting.Rmd' using 'UTF-8'... OK
  'cpp11.Rmd' using 'UTF-8'... failed
  'internals.Rmd' using 'UTF-8'... OK
  'motivations.Rmd' using 'UTF-8'... failed
 ERROR
Errors in running code in vignettes:
when running code in 'FAQ.Rmd'
  ...

> add_some <- function(x, amount = 1) {
+     add_some_(x, amount)
+ }

> add_some(1)

  When sourcing 'FAQ.R':
Error: could not find function "add_some_"
Execution halted
when running code in 'cpp11.Rmd'
  ...
> 600/(0.005 - 0.002)
[1] 2e+05

> mod <- lm(mpg ~ wt, data = mtcars)

> mpe(mod)

  When sourcing 'cpp11.R':
Error: could not find function "mpe"
Execution halted
when running code in 'motivations.Rmd'
  ...
[1] 2 4 6

> x
[1] 1 2 3

> z <- times_two_rcpp(x)

  When sourcing 'motivations.R':
Error: could not find function "times_two_rcpp"
Execution halted

* checking re-building of vignette outputs ... SKIPPED
* DONE
Status: 1 ERROR, 1 NOTE
*** Error code 1

Full log:
00check.log

Lingua principale
C++
Stelle
225
Fork
52
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/cpp11

Tutte le issue di r-lib/cpp11

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.