Error in R: (Package which is only available in source form, and may need compilation of C/C++/Fortran)

前端 未结 6 1219
梦毁少年i
梦毁少年i 2020-12-01 12:07

I\'m trying to install the \'yaml\' and \'stringi\' packages in R-Studio, and it keeps giving me these errors:

> install.packages(\"stringi\")
Package whi         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 12:37

    You need to install RTools to build packages like this (i.e., a source package rather than a binary). After you install Rtools, then try again to install.packages("ggplot2") and R will prompt you with:

    Do you want to attempt to install these from source?
    y/n:
    

    (see the picture below)

    You need to answer y and it will try to compile the package so it can be installed.

提交回复
热议问题