看板 R_Language 關於我們 聯絡資訊
請問一下 當我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? 謝謝!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 74.96.114.184 (美國) ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1699699948.A.F81.html
lycantrope: 我覺得是".F_dqrdc2"不是.F_dqrdc2 11/11 20:00
lycantrope: 可以無視樓上,我智障了 11/11 20:04
obarisk: rcpp可以export Fortran? 11/11 22:51
※ 編輯: chu1216 (74.96.114.184 美國), 11/11/2023 23:07:38 ※ 編輯: chu1216 (74.96.114.184 美國), 11/11/2023 23:08:04
chu1216: 但出現error 11/11 23:09
clickhere: 改用 R_FortranMethodDef FortEntries 11/12 10:32
clickhere: 並加 R_registerRoutines 11/12 10:42