medicalperson 2021-04-25 22:26 采纳率: 0%
浏览 186

Rstudio按照包失败

library(swirl)
Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘bitops’
> install.packages("bitops")

  There is a binary version available but the source version is later:
       binary source needs_compilation
bitops  1.0-6  1.0-7              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) 
installing the source package ‘bitops’

trying URL 'https://mirrors.e-ducation.cn/CRAN/src/contrib/bitops_1.0-7.tar.gz'
Content type 'application/x-gzip' length 10809 bytes (10 KB)
==================================================
downloaded 10 KB

* installing *source* package ‘bitops’ ...
** package ‘bitops’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘bitops’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/bitops’

The downloaded source packages are in
    ‘/private/var/folders/9t/mjy2f0ds26d5ttj00_ct2rqm0000gn/T/RtmpdKR5zE/downloaded_packages’
Warning message:
In install.packages("bitops") :
  installation of package ‘bitops’ had non-zero exit status

下载安装完swirl包后,加载swirl包后提示缺少bitops

选择安装bitops包后,提示出错,求大神解决一下,谢谢!

  • 写回答

3条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序