Problems with installation R packages

前端 未结 3 1009
我在风中等你
我在风中等你 2020-12-05 05:51

I\'m a Windows user. A few weeks ago I installed R and Rstudio along with many packages. Today there was a message that new packages were not installed.

Warni         


        
3条回答
  •  暖寄归人
    2020-12-05 06:35

    In the mean while R Studio fixes the bug, a temporal solution for not having to especifie the CRAN repository every time we start an R session, is to edit your "Rprofile.site" file and add this line

    options(repos = getOption("repos")["CRAN"])

    That way every time an R session is started the CRANextra repository ("http://www.stats.ox.ac.uk/pub/RWin") is removed automatically. Just remember to delete or comment with # this line after the bug is solved.

提交回复
热议问题