What is the purpose of using ::
in R? I noticed in some of the guides they use ::
to indicate what package the function is from. Does this make things run faster or is it merely to indicate what packages are necessary?
Also, are there any other purposes/uses for ::
?
Snippet from ggplot2 package introduction:
grid::polygonGrob(
coords$x, coords$y,
default.units = "native",
gp = grid::gpar(
col = first_row$colour,
fill = scales::alpha(first_row$fill, first_row$alpha),
lwd = first_row$size * .pt,
lty = first_row$linetype
)