R_Language 板


LINE

[問題類型]: 程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來) [軟體熟悉度]: 入門(寫過其他程式,只是對語法不熟悉) [問題敘述]: 如題,我現在遇到兩個困難。 一、OpenMP 想要安裝套件 data.table,但此套件需要 OpenMP。 參考網站 https://mac.r-project.org/openmp/ 給出的提示, 我在 terminal 輸入指令 curl -O https://mac.r-project.org/openmp/openmp-11.0.1-darwin20-Release.tar.gz sudo tar fvx openmp-11.0.1-darwin20-Release.tar.gz -C / 輸入第二個指令後,卻得到以下的錯誤資訊,似乎是沒有解壓縮成功? x usr/: Can't restore time x usr/local/: Can't restore time x usr/local/include/ x usr/local/lib/ x usr/local/lib/libomp.dylib x usr/local/include/ompt.h x usr/local/include/omp.h x usr/local/include/omp-tools.h tar: Error exit delayed from previous errors. 此步驟失敗,導致不曉得怎麼安裝下去了QQ 二、stringi 因為平常有使用 R Markdown 與 bookdown 的習慣,因此需要此套件。 更新 R 為 4.1 版以後,在 Installing Packages 之處,輸入 stringi 卻會報錯,如: > install.packages("stringi") There is a binary version available but the source version is later: binary source needs_compilation stringi 1.6.2 1.7.3 TRUE Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes installing the source package ‘stringi’ trying URL 'https://cran.rstudio.com/src/contrib/stringi_1.7.3.tar.gz' Content type 'application/x-gzip' length 7599615 bytes (7.2 MB) ================================================== downloaded 7.2 MB * installing *source* package ‘stringi’ ... ** package ‘stringi’ successfully unpacked and MD5 sums checked ** using staged installation checking for R_HOME... /Library/Frameworks/R.framework/Resources checking for R... /Library/Frameworks/R.framework/Resources/bin/R checking for endianness... little checking for R >= 3.1.0 for C++11 use... yes checking for R < 3.4.0 for CXX1X flag use... no checking for cat... /bin/cat checking for local ICUDT_DIR... icu69/data checking for gcc... /usr/local/gfortran/bin/gcc -fopenmp checking whether the C compiler works... no configure: error: in `/private/var/folders/r0/thwpnv9d5bjc5gvqkwdg3_2w0000gn/T/Rtmpfh2bgB/R.INSTALL4ac22864b91a/stringi': configure: error: C compiler cannot create executables See `config.log' for more details ERROR: configuration failed for package ‘stringi’ * removing ‘ /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/stringi’ Warning in install.packages : installation of package ‘stringi’ had non-zero exit status The downloaded source packages are in ‘ /private/var/folders/r0/thwpnv9d5bjc5gvqkwdg3_2w0000gn/T/RtmpMoOgNU/downloaded_packages ’ [環境敘述] R version 4.1.0 Patched (2021-07-16 r80639) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Big Sur 11.1 Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.1.0 htmltools_0.5.1.1 tools_4.1.0 yaml_2.2.1 rmarkdown_2.9 [6] knitr_1.33 xfun_0.24 digest_0.6.27 rlang_0.4.11 evaluate_0.14 感謝各位板友! --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.217.197.68 (臺灣)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/R_Language/M.1626714589.A.A6F.html ※ 編輯: MiddleRe (49.217.197.68 臺灣), 07/20/2021 01:11:19
1F:→ MiddleRe: 已經自行解決stringi的問題了,是arm的問題 07/20 01:26
2F:→ MiddleRe: 煩請各位板友協助OpenMP的問題了QQ 07/20 01:27







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Tech_Job站內搜尋

TOP