[环境:macOS 10.12.6,RStudio 1.1.383,R 3.4.2(通过自制软件)]
请注意,这不是这个问题的重复- 那里的解决方案对我不起作用.
当我尝试在RStudio中安装XML包时,我收到安装错误:
> install.packages("XML")
Installing package into ‘/usr/local/lib/R/3.4/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/XML_3.98-1.9.tar.gz'
Content type 'application/x-gzip' length 1599437 bytes (1.5 MB)
==================================================
downloaded 1.5 MB
* installing *source* package ‘XML’ ...
** package ‘XML’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix …Run Code Online (Sandbox Code Playgroud)