diff --git a/DESCRIPTION b/DESCRIPTION index bcd97b75..864e2d08 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: RcppCGAL Type: Package Title: 'Rcpp' Integration for 'CGAL' -Version: 6.0.1 -Date: 2025-01-08 +Version: 6.1 +Date: 2025-10-08 Authors@R: c( person(given = "Eric", family = "Dunipace", @@ -20,15 +20,17 @@ Description: Creates a header only package to link to the 'CGAL' the software such as Hilbert sorting, K-D Tree nearest neighbors, and convex hull algorithms. For more information about how to use the header files, see the 'CGAL' documentation at . Currently - downloads version 6.0.1 of the 'CGAL' header files. + downloads version 6.1 of the 'CGAL' header files. License: GPL-3 -Imports: Rcpp, utils, knitr, rmarkdown +Imports: Rcpp, utils Suggests: + knitr, + rmarkdown, spelling, testthat (>= 3.0.0) BugReports: https://github.com/ericdunipace/RcppCGAL/issues NeedsCompilation: no -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 Encoding: UTF-8 VignetteBuilder: knitr Biarch: TRUE diff --git a/NEWS.md b/NEWS.md index 24d971e3..2c750015 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # Package RcppCGAL +## Changes in 6.1 +* Updating header files to version 6.1 +* removing + ## Changes in 6.0.1 ### Minor improvements and Bug Fixes * Fixing a bug where some builds of Fedora Linux wouldn't untar header files diff --git a/R/zzz.R b/R/zzz.R index 6cd3c2b4..3adeb4c5 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -5,6 +5,8 @@ interact <- interactive() no_cgal <- !cgal_is_installed() # utils::adist + # knitr::opts_knit$get("rmarkdown.pandoc.to") + # rmarkdown::pandoc_version() .cgal_download_check() # will see if header files are found diff --git a/inst/AUTHORS b/inst/AUTHORS index a3e7be73..d790e186 100644 --- a/inst/AUTHORS +++ b/inst/AUTHORS @@ -1,110 +1,145 @@ Eric Dunipace [aut, cre], Tyler Morgan-Wall [ctb], -Pierre Alliez [ctb], -Matthias Bäsken [ctb], +Abdelkrim Mebarki [ctb], +Afra Zomorodian [ctb], +Alexandru Tifrea [ctb], +Alon Baram [ctb], +André Nusser [ctb], +Andrea Tagliasacchi [ctb], +Andreas Fabri [ctb], +Andreas Meyer [ctb], +Ankit Gupta [ctb], +Aymeric Pellé [ctb], +Baruch Zukerman [ctb], +Baskın Şenbaşlar [ctb], +Bernd Gärtner [ctb], +Bruno Lévy [ctb], +Camille Wormser [ctb], +Cédric Portaneri [ctb], +Christina Vaz [ctb], +Christophe Delage [ctb], +Claudia Werner [ctb], +Clément Jamin [ctb], +Dan Halperin [ctb], +Daniel Sieger [ctb], +Daniel Zint [ctb], +David Bommes [ctb], +David Coeurjolly [ctb], +David Cohen-Steiner [ctb], +Dmitry Anisimov [ctb], +Efi Fogel [ctb], +Eli Packer [ctb], Eric Berberich [ctb], -Olivier Billet [ctb], -Jean-Daniel Boissonnat [ctb], -Carine Bonetto [ctb], -Mario Botsch [ctb], -Hervé Brönnimann [ctb], +Éric Colin de Verdière [ctb], +Evanthia Papadopoulou [ctb], +Eyal Flato [ctb], Fernando Cacciola [ctb], -Manuel Caroli [ctb], -Nicolas Carrez [ctb], +Fernando de Goes [ctb], +Florent Lafarge [ctb], +Francis Lazarus [ctb], +Francisc Bungiu [ctb], +Frans Wessendorp [ctb], Frédéric Cazals [ctb], -Raphaëlle Chaine [ctb], -Tran Kai Frank Da [ctb], +Frédérik Paradis [ctb], +Gabriele Neyer [ctb], +Gaël Guennebaud [ctb], +Geert-Jan Giezeman [ctb], +Gennadii Sytov [ctb], Guillaume Damiand [ctb], -Christophe Delage [ctb], -Olivier Devillers [ctb], -Katrin Dobrindt [ctb], -Arno Eigenwillig [ctb], -Eti Ezra [ctb], -Andreas Fabri [ctb], -Frédéric Fichel [ctb], -Kaspar Fischer [ctb], -Eyal Flato [ctb], +Guy Zucker [ctb], +Hans Tangelder [ctb], +Hardik Jain [ctb], +Hervé Brönnimann [ctb], +Hossam Saeed [ctb], +Ilker O. Yaz [ctb], +Iordan Iordanov [ctb], +Ivan Pađen [ctb], +Ivo Vigan [ctb], +Jackson Campolattaro [ctb], +Jane Tournois [ctb], +Jaques-Olivier Lachaud [ctb], +Jean-Marc Thiery [ctb], +Jean-Philippe Bauchet [ctb], +Jocelyn Meyron [ctb], Julia Flötotto [ctb], -Efi Fogel [ctb], -Wolfgang Freiseisen [ctb], -Bernd Gärtner [ctb], -Geert-Jan Giezeman [ctb], -Marc Glisse [ctb], -Shlomo Golubev [ctb], -Miguel Granados [ctb], -Gael Guennebaud [ctb], -Philippe Guigue [ctb], -Ankit Gupta [ctb], -Peter Hachenberger [ctb], -Iddo Hanniel [ctb], -Idit Haran [ctb], -Sariel Har-Peled [ctb], -Julien Hazebrouck [ctb], +Julian Komaromy [ctb], +Julian Stahl [ctb], +Kai Hormann [ctb], +Kan Huang [ctb], +Karl Bringmann [ctb], +Kaspar Fischer [ctb], +Keenan Crane [ctb], +Ken Arroyo Ohori [ctb], +Konstantinos Katrioplas [ctb], +Laurent Rineau [ctb], +Laurent Saboret [ctb], +Le-Jeng Andy Shiue [ctb], +Liangliang Nan [ctb], +Lingjie Zhu [ctb], +Loïc Dubois [ctb], +Luis Peñaranda [ctb], +Lutz Kettner [ctb], +Mael Rouxel-Labbé [ctb], +Manuel Caroli [ctb], +Marc Pouget [ctb], +Mariette Yvinec [ctb], +Mario Botsch [ctb], +Marvin Künnemann [ctb], +Matthias Bäsken [ctb], +Maxime Gimeno [ctb], +Menelaos Karavelas [ctb], Michael Hemmer [ctb], -Thomas Herrmann [ctb], -Susan Hert [ctb], -Shai Hirsch [ctb], Michael Hoffmann [ctb], -Dominik Huelse [ctb], -Marcel Janer [ctb], -Athanasios Kakargias [ctb], -Menelaos Karavelas [ctb], Michael Kerber [ctb], -Lutz Kettner [ctb], -Nico Kruithof [ctb], -Sylvain Lazard [ctb], -Eran Leiserowitz [ctb], -Bruno Lévy [ctb], -Sebastian Limbach [ctb], -Kapelushnik Lior [ctb], -Eugene Lipovetsky [ctb], -Sébastien Loriot [ctb], -Pedro Machado [ctb], -Bastien Manuel [ctb], -Naama Mayer [ctb], -Abdelkrim Mebarki [ctb], -Kurt Mehlhorn [ctb], -Naceur Meskini [ctb], -Andreas Meyer [ctb], +Michael Seel [ctb], Michal Meyerovitch [ctb], -Liangliang Nan [ctb], -Oren Nechushtan [ctb], -Gabriele Neyer [ctb], -Ralf Osbild [ctb], -Steve Oudot [ctb], -Eli Packer [ctb], -Dmitrii Pasechnik [ctb], -Aymeric Pellé [ctb], -Luis Peñaranda [ctb], -Sylvain Pion [ctb], -Marc Pouget [ctb], -Sigal Raab [ctb], -François Rebufat [ctb], -Joachim Reichel [ctb], -David Rey [ctb], -Laurent Rineau [ctb], -Daniel Russel [ctb], -Niv Sabath [ctb], -Laurent Saboret [ctb], +Mikhail Bogdanov [ctb], +Monique Teillaud [ctb], +Mostafa Ashraf [ctb], Nader Salman [ctb], -Stefan Schirra [ctb], -Sven Schönherr [ctb], -Michael Seel [ctb], +Necip Fazil Yildiran [ctb], +Nico Kruithof [ctb], +Ning Xu [ctb], +Noura Faraj [ctb], +Olga Sorkine-Hornung [ctb], +Olivier Devillers [ctb], Ophir Setter [ctb], -Le-Jeng Shiue [ctb], -Hans Tangelder [ctb], -Stéphane Tayeb [ctb], -Monique Teillaud [ctb], -Jane Tournois [ctb], -Constantinos Tsirogiannis [ctb], -Radu Ursu [ctb], -Carl Van Geem [ctb], -Remco Veltkamp [ctb], +Oren Salzman [ctb], +Panagiotis Cheilaris [ctb], +Pedro M. M. de Castro [ctb], +Pedro Machado Manhães de Castro [ctb], +Peter Hachenberger [ctb], +Philipp Moeller [ctb], +Pierre Alliez [ctb], +Quentin Mérigot [ctb], +Quincy Tse [ctb], Ron Wein [ctb], +Samuel Hornus [ctb], +Sandeep Kumar Dey [ctb], +Sebastian Morr [ctb], +Sébastien Loriot [ctb], +Sébastien Valette [ctb], +Shahar Shamai [ctb], +Shihao Wu [ctb], +Simon Giraudot [ctb], +Stefan Schirra [ctb], +Stéphane Tayeb [ctb], +Stephen Kiazyk [ctb], +Susan Hert [ctb], +Sven Oesau [ctb], +Sven Schönherr [ctb], +Sylvain Lazard [ctb], +Sylvain Pion [ctb], +Tamy Boubekeur [ctb], +The CGAL Project [ctb], +Thien Hoang [ctb], +Thijs van Lankveld [ctb], +Thomas Herrmann [ctb], +Tong Zhao [ctb], +Tran Kai Frank Da [ctb], +Vincent Despré [ctb], +Weisheng Si [ctb], Wieger Wesselink [ctb], -Camille Wormser [ctb], -Mariette Yvinec [ctb], -Afra Zomorodian [ctb], -Guy Zucker [ctb], -Baruch Zukerman [ctb], -Tali Zvi [ctb] +Xiang Gao [ctb], +Yannick Verdie [ctb], +Yin Xu [ctb] diff --git a/inst/include/CGAL_zip.tar.xz b/inst/include/CGAL_zip.tar.xz index ef140de2..d0f007bb 100644 Binary files a/inst/include/CGAL_zip.tar.xz and b/inst/include/CGAL_zip.tar.xz differ diff --git a/man/RcppCGAL-package.Rd b/man/RcppCGAL-package.Rd index 3adee003..e654fe94 100644 --- a/man/RcppCGAL-package.Rd +++ b/man/RcppCGAL-package.Rd @@ -6,7 +6,7 @@ \alias{RcppCGAL-package} \title{RcppCGAL: 'Rcpp' Integration for 'CGAL'} \description{ -Creates a header only package to link to the 'CGAL' (Computational Geometry Algorithms Library) header files in 'Rcpp'. There are a variety of potential uses for the software such as Hilbert sorting, K-D Tree nearest neighbors, and convex hull algorithms. For more information about how to use the header files, see the 'CGAL' documentation at \url{https://www.cgal.org}. Currently downloads version 6.0.1 of the 'CGAL' header files. +Creates a header only package to link to the 'CGAL' (Computational Geometry Algorithms Library) header files in 'Rcpp'. There are a variety of potential uses for the software such as Hilbert sorting, K-D Tree nearest neighbors, and convex hull algorithms. For more information about how to use the header files, see the 'CGAL' documentation at \url{https://www.cgal.org}. Currently downloads version 6.1 of the 'CGAL' header files. } \references{ The CGAL Project. (2023). {CGAL} User and Reference Manual. Retrieved from \url{https://doc.cgal.org/latest/Manual/index.html} diff --git a/revdep/README.md b/revdep/README.md index 63aa42cf..c2c1565f 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,34 +1,32 @@ # Platform -|field |value | -|:--------|:------------------------------------------------------------------------------------------------| -|version |R version 4.4.2 (2024-10-31) | -|os |macOS Sequoia 15.2 | -|system |aarch64, darwin20 | -|ui |RStudio | -|language |(EN) | -|collate |en_US.UTF-8 | -|ctype |en_US.UTF-8 | -|tz |America/Los_Angeles | -|date |2025-01-08 | -|rstudio |2024.12.0+467 Kousa Dogwood (desktop) | -|pandoc |3.2 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown) | +|field |value | +|:--------|:---------------------------------------------------------------------------| +|version |R version 4.5.1 (2025-06-13) | +|os |macOS Sequoia 15.7.1 | +|system |aarch64, darwin20 | +|ui |RStudio | +|language |(EN) | +|collate |en_US.UTF-8 | +|ctype |en_US.UTF-8 | +|tz |America/Los_Angeles | +|date |2025-10-07 | +|rstudio |2025.09.1+401 Cucumberleaf Sunflower (desktop) | +|pandoc |3.1.13 @ /opt/homebrew/bin/pandoc | +|quarto |1.7.32 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/quarto | # Dependencies -|package | old|new |Δ | -|:-----------|---:|:----------|:--| -|RcppCGAL | 6|6.0.0.9000 |* | -|fontawesome | NA|0.5.3 |* | -|xfun | NA|0.50 |* | +|package |old |new |Δ | +|:--------|:-----|:-----|:--| +|RcppCGAL |6.0.1 |6.1 |* | +|Rcpp |NA |1.1.0 |* | # Revdeps -## Failed to check (3) +## Failed to check (1) |package |version |error |warning |note | |:-------------|:-------|:-----|:-------|:----| -|approxOT |1.1 |1 | | | |interpolation |0.1.1 |1 | | | -|WpProj |0.2 |1 | | | diff --git a/revdep/cran.md b/revdep/cran.md index 28f34b8d..1290c2d6 100644 --- a/revdep/cran.md +++ b/revdep/cran.md @@ -3,12 +3,10 @@ We checked 10 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. * We saw 0 new problems - * We failed to check 3 packages + * We failed to check 1 packages Issues with CRAN packages are summarised below. ### Failed to check -* approxOT (NA) * interpolation (NA) -* WpProj (NA) diff --git a/revdep/failures.md b/revdep/failures.md index 28ea6801..a58ce108 100644 --- a/revdep/failures.md +++ b/revdep/failures.md @@ -1,102 +1,18 @@ -# approxOT +# interpolation (0.1.1) -
- -* Version: 1.1 -* GitHub: https://github.com/ericdunipace/approxOT -* Source code: https://github.com/cran/approxOT -* Date/Publication: 2024-01-16 11:50:02 UTC -* Number of recursive dependencies: 30 - -Run `revdepcheck::revdep_details(, "approxOT")` for more info - -
- -## In both - -* checking whether package ‘approxOT’ can be installed ... ERROR - ``` - Installation failed. - See ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/approxOT/new/approxOT.Rcheck/00install.out’ for details. - ``` - -## Installation - -### Devel - -``` -* installing *source* package ‘approxOT’ ... -** package ‘approxOT’ successfully unpacked and MD5 sums checked -** using staged installation -** libs -using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++14 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/RcppEigen/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -DCGAL_NO_GMP=1 -I../inst/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o -In file included from RcppExports.cpp:4: -... - 281 | class Input_rep> - | ^ -/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include/CGAL/IO/io.h:280:17: note: declared here - 280 | template - | ^ -fatal error: too many errors emitted, stopping now [-ferror-limit=] -18 warnings and 20 errors generated. -make: *** [hilbert_cgal.o] Error 1 -ERROR: compilation failed for package ‘approxOT’ -* removing ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/approxOT/new/approxOT.Rcheck/approxOT’ - - -``` -### CRAN - -``` -* installing *source* package ‘approxOT’ ... -** package ‘approxOT’ successfully unpacked and MD5 sums checked -** using staged installation -** libs -using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++14 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/RcppEigen/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/approxOT/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -DCGAL_NO_GMP=1 -I../inst/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o -In file included from RcppExports.cpp:4: -... - 281 | class Input_rep> - | ^ -/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include/CGAL/IO/io.h:280:17: note: declared here - 280 | template - | ^ -fatal error: too many errors emitted, stopping now [-ferror-limit=] -18 warnings and 20 errors generated. -make: *** [hilbert_cgal.o] Error 1 -ERROR: compilation failed for package ‘approxOT’ -* removing ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/approxOT/old/approxOT.Rcheck/approxOT’ - - -``` -# interpolation - -
- -* Version: 0.1.1 -* GitHub: https://github.com/stla/interpolation -* Source code: https://github.com/cran/interpolation -* Date/Publication: 2023-12-20 09:20:02 UTC -* Number of recursive dependencies: 3 +* GitHub: +* Email: +* GitHub mirror: Run `revdepcheck::revdep_details(, "interpolation")` for more info -
- ## In both * checking whether package ‘interpolation’ can be installed ... ERROR - ``` - Installation failed. - See ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/interpolation/new/interpolation.Rcheck/00install.out’ for details. - ``` + ``` + Installation failed. + See ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/interpolation/new/interpolation.Rcheck/00install.out’ for details. + ``` ## Installation @@ -104,15 +20,15 @@ Run `revdepcheck::revdep_details(, "interpolation")` for more info ``` * installing *source* package ‘interpolation’ ... +** this is package ‘interpolation’ version ‘0.1.1’ ** package ‘interpolation’ successfully unpacked and MD5 sums checked ** using staged installation ** libs -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ +using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.3.19.1)’ using C++17 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -I/opt/homebrew/Cellar/gmp/6.3.0/include -fPIC -g -O3 -mtune=native -arch arm64 -ftemplate-depth-256 -DSTAN_THREADS -c RcppExports.cpp -o RcppExports.o +using SDK: ‘MacOSX26.0.sdk’ +clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -I/opt/homebrew/Cellar/gmp/6.3.0/include -fPIC -g -O3 -march=native -arch arm64 -ftemplate-depth-256 -DSTAN_THREADS -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: -In file included from ./interpolation_types.h:5: ... 168 | return ceilLg(BigInt(a)); | ^ @@ -131,15 +47,15 @@ ERROR: compilation failed for package ‘interpolation’ ``` * installing *source* package ‘interpolation’ ... +** this is package ‘interpolation’ version ‘0.1.1’ ** package ‘interpolation’ successfully unpacked and MD5 sums checked ** using staged installation ** libs -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ +using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.3.19.1)’ using C++17 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -I/opt/homebrew/Cellar/gmp/6.3.0/include -fPIC -g -O3 -mtune=native -arch arm64 -ftemplate-depth-256 -DSTAN_THREADS -c RcppExports.cpp -o RcppExports.o +using SDK: ‘MacOSX26.0.sdk’ +clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/interpolation/BH/include' -I/opt/R/arm64/include -DCGAL_HEADER_ONLY=1 -I/opt/homebrew/Cellar/gmp/6.3.0/include -fPIC -g -O3 -march=native -arch arm64 -ftemplate-depth-256 -DSTAN_THREADS -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: -In file included from ./interpolation_types.h:5: ... 168 | return ceilLg(BigInt(a)); | ^ @@ -153,82 +69,4 @@ ERROR: compilation failed for package ‘interpolation’ * removing ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/interpolation/old/interpolation.Rcheck/interpolation’ -``` -# WpProj - -
- -* Version: 0.2 -* GitHub: NA -* Source code: https://github.com/cran/WpProj -* Date/Publication: 2024-01-22 17:12:47 UTC -* Number of recursive dependencies: 99 - -Run `revdepcheck::revdep_details(, "WpProj")` for more info - -
- -## In both - -* checking whether package ‘WpProj’ can be installed ... ERROR - ``` - Installation failed. - See ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/WpProj/new/WpProj.Rcheck/00install.out’ for details. - ``` - -## Installation - -### Devel - -``` -* installing *source* package ‘WpProj’ ... -** package ‘WpProj’ successfully unpacked and MD5 sums checked -** using staged installation -** libs -using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++14 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/BH/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RcppEigen/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RcppProgress/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RSpectra/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o -In file included from RcppExports.cpp:4: -... - 281 | class Input_rep> - | ^ -/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/new/RcppCGAL/include/CGAL/IO/io.h:280:17: note: declared here - 280 | template - | ^ -fatal error: too many errors emitted, stopping now [-ferror-limit=] -23 warnings and 20 errors generated. -make: *** [SufficientStatistics.o] Error 1 -ERROR: compilation failed for package ‘WpProj’ -* removing ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/WpProj/new/WpProj.Rcheck/WpProj’ - - -``` -### CRAN - -``` -* installing *source* package ‘WpProj’ ... -** package ‘WpProj’ successfully unpacked and MD5 sums checked -** using staged installation -** libs -using C compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’ -using C++14 -using SDK: ‘MacOSX15.2.sdk’ -clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/BH/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/Rcpp/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RcppEigen/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RcppProgress/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include' -I'/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/WpProj/RSpectra/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o -In file included from RcppExports.cpp:4: -... - 281 | class Input_rep> - | ^ -/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/library.noindex/RcppCGAL/old/RcppCGAL/include/CGAL/IO/io.h:280:17: note: declared here - 280 | template - | ^ -fatal error: too many errors emitted, stopping now [-ferror-limit=] -23 warnings and 20 errors generated. -make: *** [SufficientStatistics.o] Error 1 -ERROR: compilation failed for package ‘WpProj’ -* removing ‘/Users/eifer/GoogleDrive/R/RcppCGAL/revdep/checks.noindex/WpProj/old/WpProj.Rcheck/WpProj’ - - ``` diff --git a/tools/config/downloader_functions.R b/tools/config/downloader_functions.R index 5b031cfc..5ff66be8 100644 --- a/tools/config/downloader_functions.R +++ b/tools/config/downloader_functions.R @@ -229,3 +229,105 @@ untar_tarball <- function(temp_file, dest_folder, own = FALSE) { return(invisible(NULL)) } + +read_bib <- function(path) { + paste(readLines(path, encoding = "UTF-8"), collapse = "\n") +} + +# --- Helper: Extract author field robustly (brace-depth aware) --- +extract_author_fields <- function(text) { + m <- gregexpr("author\\s*=\\s*", text, ignore.case = TRUE, perl = TRUE)[[1]] + if (m[1] == -1) return(character()) + vals <- character(length(m)) + for (i in seq_along(m)) { + start_eq <- m[i] + attr(m, "match.length")[i] - 1 + j <- start_eq + 1 + while (j <= nchar(text) && substr(text, j, j) %in% c(" ", "\t", "\n", "\r")) j <- j + 1 + ch <- substr(text, j, j) + if (ch == "\"") { + j <- j + 1; brace_depth <- 0L; start_val <- j + while (j <= nchar(text)) { + cch <- substr(text, j, j) + if (cch == "{") brace_depth <- brace_depth + 1L + else if (cch == "}") brace_depth <- max(0L, brace_depth - 1L) + else if (cch == "\"" && brace_depth == 0L) break + j <- j + 1 + } + vals[i] <- substr(text, start_val, j - 1) + } else if (ch == "{") { + j <- j + 1; brace_depth <- 1L; start_val <- j + while (j <= nchar(text) && brace_depth > 0L) { + cch <- substr(text, j, j) + if (cch == "{") brace_depth <- brace_depth + 1L + else if (cch == "}") brace_depth <- brace_depth - 1L + j <- j + 1 + } + vals[i] <- substr(text, start_val, j - 2) + } else { + start_val <- j + while (j <= nchar(text) && !substr(text, j, j) %in% c(",", "\n", "\r")) j <- j + 1 + vals[i] <- trimws(substr(text, start_val, j - 1)) + } + } + vals +} + +# --- Helper: Convert LaTeX accent codes to Unicode --- +latex_to_unicode <- function(x) { + conv <- c( + "\\\\\"{a}" = "ä", "\\\\\"{A}" = "Ä", + "\\\\\"{o}" = "ö", "\\\\\"{O}" = "Ö", + "\\\\\"{u}" = "ü", "\\\\\"{U}" = "Ü", + "\\\\\"a" = "ä", "\\\\\"A" = "Ä", + "\\\\\"o" = "ö", "\\\\\"O" = "Ö", + "\\\\\"u" = "ü", "\\\\\"U" = "Ü", + "\\\\\"e" = "ë", "\\\\\"E" = "Ë", + "\\\\\"i" = "ï", "\\\\\"I" = "Ï", + "\\\\~a" = "ã", "\\\\~A" = "Ã", + "\\\\-d" = "đ", "\\\\-D" = "Đ", + "\\\\'a" = "á", "\\\\'A" = "Á", + "\\\\'e" = "é", "\\\\'E" = "É", + "\\\\'i" = "í", "\\\\'I" = "Í", + "\\\\'o" = "ó", "\\\\'O" = "Ó", + "\\\\'u" = "ú", "\\\\'U" = "Ú", + "\\\\`a" = "à", "\\\\`e" = "è", "\\\\`i" = "ì", "\\\\`o" = "ò", "\\\\`u" = "ù", + "\\\\~n" = "ñ", "\\\\~N" = "Ñ", + "\\\\c{c}" = "ç", "\\\\c{C}" = "Ç", + "\\\\c{S}" = "Ş", "\\\\c{s}" = "ş", + "\\\\i" = "ı", "\\\\I" = "İ", + "\\\\^a" = "â", "\\\\^e" = "ê", "\\\\^i" = "î", "\\\\^o" = "ô", "\\\\^u" = "û", + "\\\\ss" = "ß", + "\\\\ae" = "æ", "\\\\AE" = "Æ", + "\\\\oe" = "œ", "\\\\OE" = "Œ", + "\\\\o" = "ø", "\\\\O" = "Ø" + ) + for (pat in names(conv)) { + x <- gsub(pat, conv[[pat]], x, perl = TRUE) + } + # remove any remaining braces used for grouping + gsub("[{}]", "", x) +} + +clean_name <- function(x) { + x <- trimws(x) + if (startsWith(x, "{") && endsWith(x, "}")) { + x <- substr(x, 2, nchar(x) - 1) + } + x <- gsub("\\s+", " ", x) + latex_to_unicode(x) +} + +# --- Main extraction function --- +extract_all_authors <- function(bib_path, + out_unique = "authors_unique.txt") { + txt <- read_bib(bib_path) + fields <- extract_author_fields(txt) + parts <- unlist(strsplit(fields, "\\s+and\\s+", perl = TRUE), use.names = FALSE) + parts <- parts[nzchar(trimws(parts))] + parts <- vapply(parts, clean_name, character(1)) + # writeLines(parts, out_full, useBytes = TRUE) + writeLines(sort(unique(parts)), out_unique, useBytes = TRUE) + cat(sprintf("Wrote to %s (%d unique authors)\n", + out_unique, length(unique(parts)))) +} +