{"action":"closed","issue":{"url":"https://api.github.com/repos/ramnathv/rMaps/issues/112","repository_url":"https://api.github.com/repos/ramnathv/rMaps","labels_url":"https://api.github.com/repos/ramnathv/rMaps/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/ramnathv/rMaps/issues/112/comments","events_url":"https://api.github.com/repos/ramnathv/rMaps/issues/112/events","html_url":"https://github.com/ramnathv/rMaps/issues/112","id":161763766,"number":112,"title":"How to save leaflet as a htmlwidget","user":{"login":"kezhan","id":7051247,"avatar_url":"https://avatars.githubusercontent.com/u/7051247?v=3","gravatar_id":"","url":"https://api.github.com/users/kezhan","html_url":"https://github.com/kezhan","followers_url":"https://api.github.com/users/kezhan/followers","following_url":"https://api.github.com/users/kezhan/following{/other_user}","gists_url":"https://api.github.com/users/kezhan/gists{/gist_id}","starred_url":"https://api.github.com/users/kezhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kezhan/subscriptions","organizations_url":"https://api.github.com/users/kezhan/orgs","repos_url":"https://api.github.com/users/kezhan/repos","events_url":"https://api.github.com/users/kezhan/events{/privacy}","received_events_url":"https://api.github.com/users/kezhan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T19:18:09Z","updated_at":"2016-06-22T20:58:58Z","closed_at":"2016-06-22T20:58:58Z","body":"I try to save a leaflet map created with rMaps into a html file, with the following code:\r\n\r\n```\r\nL2 <- Leaflet$new()\r\nL2$setView(c(29.7632836,  -95.3632715), 10)\r\nL2$tileLayer(provider = \"MapQuestOpen.OSM\")\r\nL2\r\nlibrary(htmlwidgets)\r\n\r\nsaveWidget(L2,\"t.html\")\r\n```\r\nBut I got an error:\r\n\r\n```\r\nError in envRefInferField(x, what, getClass(class(x)), selfEnv) : \r\n  ‘width’ is not a valid field or method name for reference class “Leaflet”\r\n```\r\n\r\nCould you please help?"}}
{"actor":{"display_login":"ramnathv"}}