tryCatch not catching error produced by install.packages within RStudio

后端 未结 3 1334
再見小時候
再見小時候 2021-01-22 02:02

Consider the following usage:

tryCatch(log(\"a\"), error = function(e) NULL)
#NULL

Now I\'m trying to do essentially the same, but in a more co

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-22 02:55

    Use the namespaced invocation:

    utils::install.packages()
    

提交回复
热议问题