I wanted to make an R notebook containing a map, but I can't knit it to HTML. I am getting the following error:
Error: could not find function "plot_my_connection"
I tried to find a package I could use, but I couldn't find anything. What edits are needed for my code to run, so I can knit to HTML?
The error happens on the following call
for(i in 1:nrow(all_pairs)) {
plot_my_connection(
all_pairs$long1[i],
all_pairs$lat1[i],
all_pairs$long2[i],
all_pairs$lat2[i],
col = "#99ccff",
lwd = 1
)
}