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/cn.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灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP