# NOT RUN {
canProject <- .Platform$OS.type!="windows"&&requireNamespace("rgdal")
if (canProject) {
library(oce)
## Cape Split, in the Minas Basin of the Bay of Fundy
cs <- list(longitude=-64.49657, latitude=45.33462)
xy <- lonlat2map(cs, projection="+proj=merc")
map2lonlat(xy)
}
# }
Run the code above in your browser using DataLab