create an spatiallineobject from 2 points, optional export as shapefile
sp_line(
Y_coords,
X_coords,
ID = "ID",
proj4 = "+proj=longlat +datum=WGS84 +no_defs",
export = FALSE,
runDir
)
Y/lat coordinates
X/lon coordinates
id of line
projection
write shafefile default = F
character
runtime folder