在我的 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
任何人都可以提出解决方法吗?