在R markdown

时间:2017-03-13 15:10:39

标签: r r-markdown ogr2ogr

在我的Rmarkdown文件中,我想要取消已读取GeoJSON文件的消息。

我尝试过包含{r message=FALSE, warning=FALSE}但这不起作用,并且还将函数包装在invisible()中 - 但html输出中仍会出现相同的消息:

invisible(polys <- readOGR("data.geojson", "OGRGeoJSON"))

## OGR data source with driver: GeoJSON 
## Source: "data.geojson", layer: "OGRGeoJSON"
## with 102 features
## It has 6 fields

有人可以建议解决方法吗?

0 个答案:

没有答案
相关问题