I have a flyer that I want to save in an html file in a specific folder. I am using windows 7.
I tried the following:
library(htmlwidgets) saveWidget(map_leaflet, file="ressources/test.html") library(htmlwidgets) saveWidget(map_leaflet, file="ressources\\test.html") library(htmlwidgets) path_name <- file.path("ressources", "test.html", fsep="\\") saveWidget(map_leaflet, file=path_name) library(htmlwidgets) path_name <- paste("ressources", "test.html", sep="/") saveWidget(map_leaflet, file=path_name)
As an error message, depending on the Rstudio session, I have
1) Error in setwd (dir): cannot change working directory
2) Unable to find the path
When I save only this:
library(htmlwidgets) saveWidget(map_leaflet, file="test.html")
It works great.
Thank you in advance for your help.
html r save htmlwidget
tuttifolies
source share