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包后,提示出错,求大神解决一下,谢谢!