R Script - How to Continue Code Execution on Error

后端 未结 3 1983
挽巷
挽巷 2020-11-30 08:37

I have written an R script which includes a loop that retrieves external (web) data. The format of the data are most of the time the same, however sometimes the format chang

3条回答
  •  难免孤独
    2020-11-30 09:10

    How about these solutions on this related question :

    Is there a way to `source()` and continue after an error?

    Either parse(file = "script.R") followed by a loop'd try(eval()) on each expression in the result.

    Or the evaluate package.

提交回复
热议问题