VIS-2129-F2020 / jiwonpark-vis

0 stars 0 forks source link

Question on exporting the interactive map #10

Closed jiwonpark1994 closed 3 years ago

jiwonpark1994 commented 3 years ago

Hello Carole and Alex,

I had a problem exporting my interactive map from R to the HTML file. I get an error message of "Error in .getNamespace(pkg) : invalid type/length (symbol/0) in vector allocation" But I'm sure I installed both htmltools and htmlwidget. Could you please take a look? Below is the link to my R markdown file.

https://vis-2129-f2020.github.io/jiwonpark-vis/VIS_interactive_assignment.Rmd

jiwonpark1994 commented 3 years ago

Hi Carole, thank you for your kind explanation in the office hour!

And I just figured out how to create a variable and show "NA" for date of designation in case there is no value. I applied "case_when" function like the below as you taught me and it worked :

landmark_boston_addr$describe2 <- paste("Name :", landmark_boston_addr$Name_of_Pr, "
") %>% paste("Date of Designation :" , case_when(landmark_boston_addr$Date_Desig == " " ~ "NA", TRUE ~ landmark_boston_addr$Date_Desig)) %>% lapply(htmltools::HTML)

Thank you!