### Super-basic setup: Get latest updates Source: https://github.com/tidyverse/ggplot2/wiki/Developing-ggplot2-using-github Fetches the latest updates from the cloned repository. ```bash git pull ``` -------------------------------- ### Installation Source: https://github.com/tidyverse/ggplot2/blob/main/README.md Provides instructions on how to install ggplot2, either as part of the tidyverse or standalone, and also how to install the development version from GitHub. ```r # The easiest way to get ggplot2 is to install the whole tidyverse: install.packages("tidyverse") # Alternatively, install just ggplot2: install.packages("ggplot2") # Or the development version from GitHub: # install.packages("pak") pak::pak("tidyverse/ggplot2") ``` -------------------------------- ### Check development environment setup Source: https://github.com/tidyverse/ggplot2/wiki/Improving-the-ggplot2-documentation This code snippet checks if the necessary development tools are installed correctly for package development. ```R install.packages(c("devtools", "RCurl")) library(devtools) has_devel() ``` -------------------------------- ### tidybins Devel Installation Status Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This code snippet shows the R package installation log for 'tidybins' in a development environment, indicating successful checks for various aspects including Rd contents, examples, and vignettes, with 3 NOTEs. ```R * using log directory ‘/tmp/workdir/tidybins/new/tidybins.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘tidybins/DESCRIPTION’ ... OK ... * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: 3 NOTEs ``` -------------------------------- ### prefviz Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Output from a development installation check for the prefviz package, showing an 'OK' status. ```r * using log directory ‘/tmp/workdir/prefviz/new/prefviz.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘prefviz/DESCRIPTION’ ... OK ... * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘testthat.R’ * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: OK ``` -------------------------------- ### autovi Devel Installation Check Log Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the development version of the autovi package installation check, including R version, platform, compiler, and the status of checks for DESCRIPTION, Rd metadata, examples, and tests. ```R * using log directory ‘/tmp/workdir/autovi/new/autovi.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘autovi/DESCRIPTION’ ... OK ... * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘testthat.R’ * DONE Status: OK ``` -------------------------------- ### WQM Devel Installation Failure Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output showing an installation failure for the WQM package in the development environment. ```text * using log directory ‘/tmp/workdir/WQM/new/WQM.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘WQM/DESCRIPTION’ ... OK ... * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘WQM’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/WQM/new/WQM.Rcheck/00install.out’ for details. * DONE Status: 1 ERROR, 1 NOTE ``` -------------------------------- ### aridagri Devel Installation Check Log Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the development version of the aridagri package installation check, showing R version, platform, compiler, and the status of checks including Rd metadata, examples, and notes. ```R * using log directory ‘/tmp/workdir/aridagri/new/aridagri.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘aridagri/DESCRIPTION’ ... OK ... * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * DONE Status: 1 NOTE ``` -------------------------------- ### ggpicrust2 Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This snippet shows the output of the devel installation check for the ggpicrust2 package, indicating 2 NOTEs. ```bash * using log directory ‘/tmp/workdir/ggpicrust2/new/ggpicrust2.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘ggpicrust2/DESCRIPTION’ ... OK ... (truncated for brevity) * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘testthat.R’ * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: 2 NOTEs ``` -------------------------------- ### Devel Installation Log for GRIDCOPULA Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the 'Devel' installation of the GRIDCOPULA package, showing an error related to a missing 'gsl' package. ```r * installing *source* package ‘GRIDCOPULA’ ... ** package ‘GRIDCOPULA’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘gsl’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘GRIDCOPULA’ * removing ‘/tmp/workdir/GRIDCOPULA/new/GRIDCOPULA.Rcheck/GRIDCOPULA’ ``` -------------------------------- ### Install development versions of roxygen and scales Source: https://github.com/tidyverse/ggplot2/wiki/Improving-the-ggplot2-documentation Installs the development versions of the roxygen documentation tool and the scales package using devtools. ```R library(devtools) install_github("roxygen", "klutometis") install_github("scales") ``` -------------------------------- ### simcausal Devel Error Before Installation Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This snippet shows the error output during the devel check for the simcausal package before installation. ```R * using log directory ‘/tmp/workdir/simcausal/new/simcausal.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘simcausal/DESCRIPTION’ ... OK ... --- failed re-building ‘simcausalVignette.Rnw’ SUMMARY: processing the following file failed: ‘simcausalVignette.Rnw’ Error: Vignette re-building failed. Execution halted * DONE Status: 1 WARNING, 1 NOTE ``` -------------------------------- ### ggsem Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This snippet shows the output of the devel installation check for the ggsem package, indicating an ERROR due to a missing dependency. ```bash * using log directory ‘/tmp/workdir/ggsem/new/ggsem.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘ggsem/DESCRIPTION’ ... OK ... (truncated for brevity) * this is package ‘ggsem’ version ‘0.9.9’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... ERROR Package required but not available: ‘semPlot’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. * DONE Status: 1 ERROR ``` -------------------------------- ### CRAN Installation Log for GRIDCOPULA Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the 'CRAN' installation of the GRIDCOPULA package, showing an error related to a missing 'gsl' package. ```r * installing *source* package ‘GRIDCOPULA’ ... ** package ‘GRIDCOPULA’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘gsl’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘GRIDCOPULA’ * removing ‘/tmp/workdir/GRIDCOPULA/old/GRIDCOPULA.Rcheck/GRIDCOPULA’ ``` -------------------------------- ### Build and install ggplot2 development version Source: https://github.com/tidyverse/ggplot2/wiki/Improving-the-ggplot2-documentation This sequence of commands rebuilds the documentation, turns on development mode, and installs the development version of ggplot2. ```R dev_mode() # only need to do once per session document("path/to/ggplot2") # make sure docs are up-to-date install("path/to/ggplot2") ``` -------------------------------- ### ggpicrust2 CRAN Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This snippet shows the output of the CRAN installation check for the ggpicrust2 package, indicating 2 NOTEs. ```bash * using log directory ‘/tmp/workdir/ggpicrust2/old/ggpicrust2.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘ggpicrust2/DESCRIPTION’ ... OK ... (truncated for brevity) * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘testthat.R’ * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: 2 NOTEs ``` -------------------------------- ### fio Devel Installation Error (Rust Version) Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the 'fio' package installation on devel, showing an error due to an unsupported Rust version. ```r * installing *source* package ‘fio’ ... ** package ‘fio’ successfully unpacked and MD5 sums checked ** using staged installation Error in eval(ei, envir) : ------------------ [UNSUPPORTED RUST VERSION]------------------ - Minimum supported Rust version is 1.84. - Installed Rust version is 1.75.0. --------------------------------------------------------------- Calls: source -> withVisible -> eval -> eval Execution halted ERROR: configuration failed for package ‘fio’ * removing ‘/tmp/workdir/fio/new/fio.Rcheck/fio’ ``` -------------------------------- ### GeneralizedUmatrixGPU Installation Failure Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This code snippet details the compilation error encountered during the installation of the 'GeneralizedUmatrixGPU' package, specifically a missing OpenCL header file. ```R * installing *source* package ‘GeneralizedUmatrixGPU’ ... ** package ‘GeneralizedUmatrixGPU’ successfully unpacked and MD5 sums checked ** using staged installation configure: building makevars System detected: Linux End of configure ** libs using C++ compiler: ‘g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0’ using C++17 g++ -std=gnu++17 -I"/opt/R/4.4.0/lib/R/include" -DNDEBUG -I'/tmp/r-deps/Rcpp/include' -I'/tmp/r-deps/RcppArmadillo/include' -I'/tmp/r-deps/RcppParallel/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/opt/R/4.4.0/lib/R/include" -DNDEBUG -I'/tmp/r-deps/Rcpp/include' -I'/tmp/r-deps/RcppArmadillo/include' -I'/tmp/r-deps/RcppParallel/include' -I/usr/local/include -fpic -g -O2 -c trainSESOM.cpp -o trainSESOM.o In file included from trainSESOM.cpp:2: ocl.h:9:10: fatal error: CL/cl.h: No such file or directory 9 | #include | ^~~~~~~~~ compilation terminated. make: *** [/opt/R/4.4.0/lib/R/etc/Makeconf:204: trainSESOM.o] Error 1 ERROR: compilation failed for package ‘GeneralizedUmatrixGPU’ * removing ‘/tmp/workdir/GeneralizedUmatrixGPU/new/GeneralizedUmatrixGPU.Rcheck/GeneralizedUmatrixGPU’ ``` -------------------------------- ### ffp Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output from the R devel installation check for the 'ffp' package, indicating an error during vignette re-building. ```r * using log directory ‘/tmp/workdir/ffp/new/ffp.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘ffp/DESCRIPTION’ ... OK ... --- failed re-building ‘views.Rmd’ SUMMARY: processing the following file failed: ‘views.Rmd’ Error: Vignette re-building failed. Execution halted * DONE Status: 1 ERROR, 1 NOTE ``` -------------------------------- ### Custom Axis Guide Function Source: https://github.com/tidyverse/ggplot2/wiki/googlegroupsformatter This snippet defines a custom R function `guide_axis` to create axis guides with specific theme elements, potentially for advanced plot customization in ggplot2. ```R guide_axis <- function(at, labels, position="right", theme) { position <- match.arg(position, c("top", "bottom", "right", "left")) at <- unit(at, "native") length <- theme$axis.ticks.length label_pos <- length + theme$axis.ticks.margin one <- unit(1, "npc") label_render <- switch(position, top = , bottom = "axis.text.x", left = , right = "axis.text.y" ) label_x <- switch(position, top = , bottom = at, right = label_pos, left = one - label_pos ) label_y <- switch(position, top = label_pos, bottom = one - label_pos, right = , left = at, ) if (is.list(labels)) { if (any(sapply(labels, is.language))) { labels <- do.call(expression, labels) } else { labels <- unlist(labels) } } labels <- theme_render(theme, label_render, labels, label_x, label_y) line <- switch(position, top = theme_render(theme, "axis.line", 0, 0, 1, 0), bottom = theme_render(theme, "axis.line", 0, 1, 1, 1), right = theme_render(theme, "axis.line", 0, 1, 0, 1), left = theme_render(theme, "axis.line", 1, 0, 1, 1) ) ticks <- switch(position, top = theme_render(theme, "axis.ticks", at, 0, at, length), bottom = theme_render(theme, "axis.ticks", at, one - length, at, 1), right = theme_render(theme, "axis.ticks", 0, at, length, at), left = theme_render(theme, "axis.ticks", one - length, at, 1, at) ) absoluteGrob( gList(ticks, labels, line), width = grobWidth(labels) + label_pos, height = grobHeight(labels) + label_pos ) } assignInNamespace("guide_axis",guide_axis, "ggplot2") ``` -------------------------------- ### GeomRect setup_data example Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/geom-rect.md This code snippet shows the setup_data function for GeomRect and the resulting error when required aesthetics are missing. ```r GeomRect$setup_data(test, NULL) ``` -------------------------------- ### aridagri CRAN Installation Check Log Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output for the CRAN version of the aridagri package installation check, detailing R version, platform, compiler, and the results of checks such as Rd metadata, examples, and notes. ```R * using log directory ‘/tmp/workdir/aridagri/old/aridagri.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘aridagri/DESCRIPTION’ ... OK ... * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * DONE Status: 1 NOTE ``` -------------------------------- ### guide_colourbar() cannot be used for shape Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/guides.md Illustrates an error message when guide_colourbar() is incorrectly used for the shape aesthetic, suggesting alternatives. -------------------------------- ### get_guide_data panel validation Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/guides.md Demonstrates an error when the 'panel' argument in get_guide_data is not a whole number. ```R get_guide_data(b, "x", panel = "a") ``` -------------------------------- ### get_guide_data aesthetic validation Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/guides.md Shows an error when the 'aesthetic' argument in get_guide_data is not a single string. ```R get_guide_data(b, 1) ``` -------------------------------- ### Builds a stat constructor Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/make-constructor.md Example of using make_constructor to build a stat constructor and printing the resulting stat object. ```R print(stat_foo) ``` -------------------------------- ### link_book() works Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/utilities-help.md Demonstrates the functionality of link_book() to create a link to a specific chapter in the online ggplot2 book. ```r link_book("facet chapter", "facet") ``` -------------------------------- ### Example of a training function for a geom Source: https://github.com/tidyverse/ggplot2/wiki/dev/reparameterisation This is an example of a training function for the 'gbar' geom, which is likely related to bar charts. ```r train_position.gbar <- function(train_x, train_y) ``` -------------------------------- ### AVGAS CRAN Installation Error Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output showing an error during the installation of the 'AVGAS' package from CRAN. ```R * using log directory ‘/tmp/workdir/AVGAS/old/AVGAS.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘AVGAS/DESCRIPTION’ ... OK ... * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘AVGAS’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/AVGAS/old/AVGAS.Rcheck/00install.out’ for details. * DONE Status: 1 ERROR ``` -------------------------------- ### WQM CRAN Installation Failure Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output showing an installation failure for the WQM package in the CRAN environment. ```text * using log directory ‘/tmp/workdir/WQM/old/WQM.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘WQM/DESCRIPTION’ ... OK ... * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘WQM’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/WQM/old/WQM.Rcheck/00install.out’ for details. * DONE Status: 1 ERROR, 1 NOTE ``` -------------------------------- ### Builds a geom constructor Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/make-constructor.md Example of using make_constructor to build a geom constructor and printing the resulting geom object. ```R print(geom_foo) ``` -------------------------------- ### semtree Devel Installation Log Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This code snippet shows the R version, platform, compiler, and session details during the devel installation of the semtree package, highlighting an ERROR due to missing 'OpenMx' package. ```R * using log directory ‘/tmp/workdir/semtree/new/semtree.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘semtree/DESCRIPTION’ ... OK ... * checking package namespace information ... OK * checking package dependencies ... ERROR Package required but not available: ‘OpenMx’ Package suggested but not available for checking: ‘ctsemOMX’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. * DONE Status: 1 ERROR ``` -------------------------------- ### simcausal CRAN Error Before Installation Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This snippet shows the error output during the CRAN check for the simcausal package before installation. ```R * using log directory ‘/tmp/workdir/simcausal/old/simcausal.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘simcausal/DESCRIPTION’ ... OK ... --- failed re-building ‘simcausalVignette.Rnw’ SUMMARY: processing the following file failed: ‘simcausalVignette.Rnw’ Error: Vignette re-building failed. Execution halted * DONE Status: 1 WARNING, 1 NOTE ``` -------------------------------- ### Alt text generation example Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/labels.md Shows how alt text can be generated for a plot using get_alt_text. ```R get_alt_text(p) ``` -------------------------------- ### RMOPI Installation Check Failure (CRAN) Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Output from a CRAN check indicating that the RMOPI package failed to install. ```R * using log directory ‘/tmp/workdir/RMOPI/old/RMOPI.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘RMOPI/DESCRIPTION’ ... OK ... * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘RMOPI’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/RMOPI/old/RMOPI.Rcheck/00install.out’ for details. * DONE Status: 1 ERROR ``` -------------------------------- ### Basic setup: Clone your GitHub repository Source: https://github.com/tidyverse/ggplot2/wiki/Developing-ggplot2-using-github Clones your personal fork of the ggplot2 repository from GitHub to your local machine. ```bash git clone git@github.com:myname/ggplot2.git cd ggplot2 ``` -------------------------------- ### DFD - Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md R package check output for DFD in development version, showing a '1 NOTE' status. ```R * using log directory ‘/tmp/workdir/DFD/new/DFD.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘DFD/DESCRIPTION’ ... OK ... * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * DONE Status: 1 NOTE ``` -------------------------------- ### AVGAS Devel Installation Error Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Log output showing an error during the installation of the 'AVGAS' package in its development version. ```R * using log directory ‘/tmp/workdir/AVGAS/new/AVGAS.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘AVGAS/DESCRIPTION’ ... OK ... * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘AVGAS’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/AVGAS/new/AVGAS.Rcheck/00install.out’ for details. * DONE Status: 1 ERROR ``` -------------------------------- ### qad - Error before installation (Devel) Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md This code snippet shows the output of an R package check for 'qad' in a development environment, indicating an error due to a missing required package 'copula'. ```R * using log directory ‘/tmp/workdir/qad/new/qad.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘qad/DESCRIPTION’ ... OK ... * this is package ‘qad’ version ‘1.0.6’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... ERROR Package required but not available: ‘copula’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. * DONE Status: 1 ERROR ``` -------------------------------- ### polarisR CRAN Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Output from a CRAN installation check for the polarisR package, showing a '1 NOTE' status. ```r * using log directory ‘/tmp/workdir/polarisR/old/polarisR.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘polarisR/DESCRIPTION’ ... OK ... * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘spelling.R’ Running ‘testthat.R’ * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: 1 NOTE ``` -------------------------------- ### Printing a ggproto object Source: https://github.com/tidyverse/ggplot2/blob/main/tests/testthat/_snaps/ggproto.md Demonstrates how a ggproto object prints, showing its members and inheritance. ```r print(Foo) ``` -------------------------------- ### polarisR Devel Installation Check Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Output from a development installation check for the polarisR package, showing a '1 NOTE' status. ```r * using log directory ‘/tmp/workdir/polarisR/new/polarisR.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 * running under: Ubuntu 24.04.3 LTS * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘polarisR/DESCRIPTION’ ... OK ... * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... OK Running ‘spelling.R’ Running ‘testthat.R’ * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * DONE Status: 1 NOTE ``` -------------------------------- ### fastei Installation Error Source: https://github.com/tidyverse/ggplot2/blob/main/revdep/failures.md Output indicating that the 'fastei' package installation failed, with a reference to a detailed log file for more information. ```text * checking whether package ‘fastei’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/fastei/new/fastei.Rcheck/00install.out’ for details. ```