inst/tinytest/test_logo.R

mf_map(mtq)
expect_silent((system.file("img/background.jpg",
                                  package = "mapsf")))
expect_silent((system.file("help/figures/logo.png",
                                  package = "mapsf"),
                      pos = "topright",
                      adj = c(-10,-10), cex = 1))
expect_silent((system.file("help/figures/logo.png",
                                  package = "mapsf"),
                      pos = c(690000, 1625355.65627547),
                      cex = 2.5))
expect_silent((system.file("img/background.jpg",
                                  package = "mapsf"),
                      pos = c(690000, 1625355.65627547),
                      resize = FALSE))
expect_error(mapsf:::posinset("topleeft", pusr = graphics::par("usr"),
                              wdest = 500, hdest = 500, adj = c(0,0)))

Try the mapsf package in your browser

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

mapsf documentation built on Oct. 9, 2026, 5:07 p.m.