rvest::html_table
需要 importmethods
,稍微查過僅有{xml2}
->{testhat}
->{methods}
- (測試用),在blogger會變白色....
This thread might shed some light on it. It seems that in some contexts RSCRIPT doesn't load package::methods
by default, whereas interactive sessions do load it by default. It seems that the "when" is not clear, but explicitly calling library(methods)
for all RSCRIPT executions seems to be the safe bet: can use package interactively, but Rscript gives errors.