[問題] Error: R call fortran

作者: chu1216 (chu)   2023-11-11 18:52:26
請問一下
當我build R package時, 下面的res() 會有error: https://imgbox.com/Z5H0pTgQ
res() 來自於 qr.default():
https://github.com/SurajGupta/r-source/blob/master/src/library/base/R/qr.R
res <- .Fortran(.F_dqrdc2,
qr = x,
n,
n,
p,
as.double(tol),
rank = integer(1L),
qraux = double(p),
pivot = as.integer(seq_len(p)),
double(2L*p))[c(1,6,7,8)]# c("qr", "rank", "qraux", "pivot")
請問當build package時, 該怎麼解決這個error?
謝謝!!!
作者: lycantrope (阿寬)   2023-11-11 20:00:00
我覺得是".F_dqrdc2"不是.F_dqrdc2可以無視樓上,我智障了
作者: obarisk (OSWALT)   2023-11-11 22:51:00
rcpp可以export Fortran?
作者: chu1216 (chu)   2023-11-11 23:09:00
但出現error
作者: clickhere (It's time to go home.)   2023-11-12 10:32:00
改用 R_FortranMethodDef FortEntries並加 R_registerRoutines

Links booklink

Contact Us: admin [ a t ] ucptt.com