tests/testthat/test-create.R

test_that("create works", {
    wkt2 <- proj_crs_text("EPSG:4326")

 expect_true( grepl("^\\+proj=longlat", proj_crs_text(wkt2, format = 1)))


})

Try the PROJ package in your browser

Any scripts or data that you put into this service are public.

PROJ documentation built on April 3, 2025, 9:23 p.m.