Last updated on 2023-04-21 07:55:54 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.1.0 | 367.26 | 39.89 | 407.15 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.1.0 | 378.30 | 32.33 | 410.63 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.1.0 | 580.87 | WARN | |||
r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 684.33 | OK | |||
r-devel-macos-arm64 | 0.1.0 | 184.00 | NOTE | |||
r-devel-macos-x86_64 | 0.1.0 | 297.00 | NOTE | |||
r-devel-windows-x86_64 | 0.1.0 | 438.00 | 150.00 | 588.00 | NOTE | |
r-patched-linux-x86_64 | 0.1.0 | 402.36 | 40.94 | 443.30 | OK | |
r-release-linux-x86_64 | 0.1.0 | 376.46 | 41.72 | 418.18 | OK | |
r-release-macos-arm64 | 0.1.0 | 178.00 | NOTE | |||
r-release-macos-x86_64 | 0.1.0 | 12.00 | ERROR | |||
r-release-windows-x86_64 | 0.1.0 | 414.00 | 135.00 | 549.00 | NOTE | |
r-oldrel-macos-x86_64 | 0.1.0 | 20.00 | ERROR | |||
r-oldrel-windows-ix86+x86_64 | 0.1.0 | 838.00 | 141.00 | 979.00 | ERROR |
Version: 0.1.0
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
/data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Partition_2/Rotation_tree_2.h:81:7: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
See ‘/data/gannet/ripley/R/packages/tests-clang/cgalPolygons.Rcheck/00install.out’ for details.
* used C++ compiler: ‘clang version 16.0.1’
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.0
Check: installed package size
Result: NOTE
installed size is 7.1Mb
sub-directories of 1Mb or more:
libs 6.9Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-macos-arm64, r-devel-macos-x86_64, r-devel-windows-x86_64, r-release-macos-arm64, r-release-windows-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.1.0
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 0.1.0
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
d:/RCompile/CRANpkg/lib/4.1/BH/include/boost/container/detail/copy_move_algo.hpp:226:19: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'value_type' {aka 'struct std::pair<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Constrained_triangulation_face_base_2<CGAL::Epeck, CGAL::Triangulation_face_base_with_info_2<CGAL::Polygon_triangulation_decomposition_2<CGAL::Epeck>::Face_info, CGAL::Epeck, CGAL::Triangulation_face_base_2<CGAL::Epeck, CGAL::Triangulation_ds_face_base_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Epeck, CGAL::Triangulation_ds_vertex_base_2<void> >, CGAL::Constrained_triangulation_face_base_2<CGAL::Epeck, CGAL::Triangulation_face_base_with_info_2<CGAL::Polygon_triangulation_decomposition_2<CGAL::Epeck>::Face_info, CGAL::Epeck, CGAL::Triangulation_face_base_2<CGAL::Epeck, CGAL::Triangulation_ds_face_base_2<void> > > > > > > > >, CGAL::Default, CGAL::Default, CGAL::Default>, false>, int>'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
Flavor: r-oldrel-windows-ix86+x86_64
Version: 0.1.0
Check: running examples for arch ‘i386’
Result: ERROR
Running examples in 'cgalPolygons-Ex.R' failed
The error most likely occurred in:
> ### Name: cgalPolygonWithHoles
> ### Title: R6 class to represent a CGAL polygon with holes
> ### Aliases: cgalPolygonWithHoles
>
> ### ** Examples
>
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$new`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> pwh <- cgalPolygonWithHoles$new(
+ squareWithHole[["outerSquare"]], list(squareWithHole[["innerSquare"]])
+ )
> pwh
Polygon with one hole.
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$area`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> pwh <- cgalPolygonWithHoles$new(
+ squareWithHole[["outerSquare"]], list(squareWithHole[["innerSquare"]])
+ )
> pwh$area() # should be 12
[1] 12
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$boundingBox`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> pwh <- cgalPolygonWithHoles$new(
+ squareWithHole[["outerSquare"]], list(squareWithHole[["innerSquare"]])
+ )
> pwh$boundingBox()
[,1] [,2]
min -2 -2
max 2 2
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$convexParts`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> pwh <- cgalPolygonWithHoles$new(
+ squareWithHole[["outerSquare"]], list(squareWithHole[["innerSquare"]])
+ )
> cxparts <- pwh$convexParts()
Found 8 convex parts.
> pwh$plot(list(), density = 10)
> invisible(
+ lapply(cxparts, function(cxpart) {
+ polygon(cxpart, lwd = 2)
+ })
+ )
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$intersection`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> # function creating a circle
> circle <- function(x, y, r) {
+ t <- seq(0, 2, length.out = 100)[-1L]
+ t(c(x, y) + r * rbind(cospi(t), sinpi(t)))
+ }
> # take two circles with a hole
> plg1 <- cgalPolygonWithHoles$new(
+ circle(-1, 0, 1.5), holes = list(circle(-1, 0, 0.8))
+ )
> plg2 <- cgalPolygonWithHoles$new(
+ circle(1, 0, 1.5), holes = list(circle(1, 0, 0.8))
+ )
> # intersection
> plgList <- plg1$intersection(plg2)
The intersection consists in one polygon.
It doesn't have any hole.
> plg <- plgList[[1]]
> # plot
> opar <- par(mar = c(0, 0, 0, 0))
> plot(
+ NULL, xlim = c(-2.6, 2.6), ylim = c(-1.6, 1.6), asp = 1,
+ xlab = NA, ylab = NA, axes = FALSE
+ )
> plg1$plot(list(lwd = 2), lwd = 2, density = 10, new = FALSE)
> plg2$plot(list(lwd = 2), lwd = 2, density = 10, new = FALSE)
> plg$plot(lwd = 4, col = "red", new = FALSE)
> par(opar)
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$minkowskiSum`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> plg1 <- cgalPolygonWithHoles$new(decagram)
> plg2 <- cgalPolygonWithHoles$new(star)
> minko <- plg1$minkowskiSum(plg2)
No hole in the Minkowski sum.
> minko$plot(lwd = 2, col = "limegreen")
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$plot`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> pwh <- cgalPolygonWithHoles$new(
+ squareWithHole[["outerSquare"]], list(squareWithHole[["innerSquare"]])
+ )
> pwh$plot(
+ outerpars = list(lwd = 2), density = 10
+ )
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$subtract`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> # function creating a circle
> circle <- function(x, y, r) {
+ t <- seq(0, 2, length.out = 100)[-1L]
+ t(c(x, y) + r * rbind(cospi(t), sinpi(t)))
+ }
> # take two circles with a hole
> plg1 <- cgalPolygonWithHoles$new(
+ circle(-1, 0, 1.5), holes = list(circle(-1, 0, 0.8))
+ )
> plg2 <- cgalPolygonWithHoles$new(
+ circle(1, 0, 1.5), holes = list(circle(1, 0, 0.8))
+ )
> # difference
> plgList <- plg1$subtract(plg2)
The difference consists in 2 polygons.
Polygon 1 has no hole.
Polygon 2 has no hole.
> # plot
> opar <- par(mar = c(0, 0, 0, 0))
> plot(
+ NULL, xlim = c(-2.6, 2.6), ylim = c(-1.6, 1.6), asp = 1,
+ xlab = NA, ylab = NA, axes = FALSE
+ )
> plgList[[1]]$plot(lwd = 4, col = "red", new = FALSE)
> plgList[[2]]$plot(lwd = 4, col = "red", new = FALSE)
> par(opar)
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$symdiff`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> # function creating a circle
> circle <- function(x, y, r) {
+ t <- seq(0, 2, length.out = 100)[-1L]
+ t(c(x, y) + r * rbind(cospi(t), sinpi(t)))
+ }
> # take two circles with a hole
> plg1 <- cgalPolygonWithHoles$new(
+ circle(-1, 0, 1.5), holes = list(circle(-1, 0, 0.8))
+ )
> plg2 <- cgalPolygonWithHoles$new(
+ circle(1, 0, 1.5), holes = list(circle(1, 0, 0.8))
+ )
> # symmetric difference
> plgList <- plg1$symdiff(plg2)
The symmetric difference consists in one polygon.
It has 3 holes.
> plg <- plgList[[1L]]
> # plot
> opar <- par(mar = c(0, 0, 0, 0))
> plg$plot(list(lwd = 4, col = "red"), lwd = 4, col = "white")
> par(opar)
>
> ## ------------------------------------------------
> ## Method `cgalPolygonWithHoles$union`
> ## ------------------------------------------------
>
> library(cgalPolygons)
> # function creating a circle
> circle <- function(x, y, r) {
+ t <- seq(0, 2, length.out = 100)[-1L]
+ t(c(x, y) + r * rbind(cospi(t), sinpi(t)))
+ }
> # take two circles with a hole
> plg1 <- cgalPolygonWithHoles$new(
+ circle(-1, 0, 1.5), holes = list(circle(-1, 0, 0.8))
+ )
> plg2 <- cgalPolygonWithHoles$new(
+ circle(1, 0, 1.5), holes = list(circle(1, 0, 0.8))
+ )
> # union
> plgList <- plg1$union(plg2)
The union consists in one polygon.
It has 2 holes.
> plg <- plgList[[1]]
> # plot
> opar <- par(mar = c(0, 0, 0, 0))
> plg$plot(list(lwd = 4, col = "red"), lwd = 4, col = "white")
> par(opar)
>
>
>
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed: 1.86 0.03 1.9 NA NA
> grDevices::dev.off()
null device
1
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')
Flavor: r-oldrel-windows-ix86+x86_64