我有一个地图传单,我想保存在特定文件夹中的html文件中.我使用的是Windows 7.
我尝试了以下方法:
library(htmlwidgets)
saveWidget(map_leaflet, file="ressources/test.html")
library(htmlwidgets)
saveWidget(map_leaflet, file="ressources\\test.html")
library(htmlwidgets)
path_name
saveWidget(map_leaflet, file=path_name)
library(htmlwidgets)
path_name
saveWidget(map_leaflet, file=path_name)
作为错误消息,取决于Rstudio会话,我要么
1)setwd(dir)错误:无法更改工作目录
2)找不到路径
当我只保存这样:
library(htmlwidgets)
saveWidget(map_leaflet, file="test.html")
它完美地运作.
预先感谢您的帮助.