Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UMR-ASTRE
mapMCDA
Commits
210115cb
Commit
210115cb
authored
Apr 11, 2020
by
Facundo Muñoz
®️
Browse files
Fix test risk_unit failing due to {raster} API change.
parent
87ac0177
Pipeline
#10610
passed with stage
in 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
210115cb
Package: mapMCDA
Title: Produce an epidemiological risk map by weighting multiple risk
factors
Version: 0.4.1
7
Version: 0.4.1
8
Date: 2020-04-11
Authors@R: c( person("Andrea", "Apolloni", email =
"andrea.apolloni@cirad.fr", role = c("ctb"), comment = "Animal
...
...
tests/testthat/test-risk_unit.R
View file @
210115cb
...
...
@@ -77,7 +77,7 @@ test_that("Missing CRS in epidemiological units", {
test_that
(
"Polygons not covering any raster-cell center"
,
{
epi_ext
<-
raster
::
bind
(
raster
::
shift
(
epiunits
[
1
],
x
=
-5
),
epiunits
)
epi_ext
<-
raster
::
bind
(
raster
::
shift
(
epiunits
[
1
],
d
x
=
-5
),
epiunits
)
# plot(r)
# plot(epi_ext, add = TRUE)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment