You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an error when trying to save a widget using the saveWidget function from the htmlwidgets package. The error message is: Error in .getNamespace(pkg) :
invalid type/length (symbol/0) in vector allocation
This error occurs even with minimal HTML content and different widgets.
Reproducible Example
# Load required libraries
library(leaflet)
library(htmltools)
library(htmlwidgets)
# Create a simple mapmap<- leaflet() %>%
addProviderTiles(providers$OpenStreetMap.Mapnik) %>%
addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
# Minimal HTML contentminimal_html<-tags$p("Test paragraph")
# Test saving with minimal HTML contenthtml_file_minimal<-"test_route_assessment_map_minimal.html"
saveWidget(
tagList(minimal_html, map),
html_file_minimal,
selfcontained=TRUE
)
**StepsTaken**-Reinstalledallnecessarypackages.-TestedwithminimalHTMLcontent.-TrieddifferentCRANmirrors.-Checkedforpackageupdates.-RanthecodeonafreshRinstallation.-Testedonadifferentmachine/environment.-Environment-Rversion:4.4.1-OperatingSystem:Windows11 x64 (build22631)
**Packages:**-leaflet:2.2.2-htmltools:0.5.8.1-htmlwidgets:1.6.4
The text was updated successfully, but these errors were encountered:
I am encountering an error when trying to save a widget using the
saveWidget
function from thehtmlwidgets
package. The error message is: Error in .getNamespace(pkg) :invalid type/length (symbol/0) in vector allocation
This error occurs even with minimal HTML content and different widgets.
Reproducible Example
The text was updated successfully, but these errors were encountered: