### Install required packages for examples Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md Examples now use nycflights13 and Lahman. Install them if you want to run the examples. ```r install.packages(c("Lahman", "nycflights13")) ``` -------------------------------- ### Install dplyr Package Source: https://github.com/tidyverse/dplyr/blob/main/README.md Installs the dplyr package. The easiest way is to install the entire tidyverse, or you can install dplyr individually. ```r install.packages("tidyverse") ``` ```r install.packages("dplyr") ``` -------------------------------- ### RcmdrPlugin.RiskDemo Installation Log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Log output from the installation of the RcmdrPlugin.RiskDemo package. This log shows a successful installation process. ```text * installing *source* package ‘RcmdrPlugin.RiskDemo’ ... ** this is package ‘RcmdrPlugin.RiskDemo’ version ‘3.2’ ** package ‘RcmdrPlugin.RiskDemo’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (RcmdrPlugin.RiskDemo) ``` -------------------------------- ### Check Installation for Errors Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This snippet indicates an ERROR during the installation of the 'FairMclus' package. The error message suggests consulting the '00install.out' file for detailed information about the installation failure. ```text Installation failed. See ‘/tmp/workdir/FairMclus/new/FairMclus.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This is a log output from the installation of an R source package. It details the steps taken during installation, including unpacking, byte-compilation, and testing. ```r * installing *source* package ‘FairMclus’ ... ** this is package ‘FairMclus’ version ‘2.2.1’ ** package ‘FairMclus’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (FairMclus) ``` -------------------------------- ### GOxploreR successful installation (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This output shows a successful installation process for the GOxploreR package from CRAN, including unpacking, checking, and final installation steps. ```text * installing *source* package ‘GOxploreR’ ... ** this is package ‘GOxploreR’ version ‘1.2.8’ ** package ‘GOxploreR’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (GOxploreR) ``` -------------------------------- ### R Installation Check: Package Installation Failed Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This is a general error message indicating that the 'bootnet' package failed to install. The details of the failure can be found in the specified installation output file. ```r Installation failed. See ‘/tmp/workdir/bootnet/new/bootnet.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Success: 'GOxploreR' (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This output confirms a successful installation of the 'GOxploreR' package from CRAN. It details the steps taken, including installing help indices, building package indices, and testing the loaded package. ```R * installing *source* package ‘GOxploreR’ ... ** this is package ‘GOxploreR’ version ‘1.2.8’ ** package ‘GOxploreR’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (GOxploreR) ``` -------------------------------- ### FairMclus Installation Success (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This snippet shows the successful installation log for the FairMclus package from CRAN. It indicates that the package was unpacked, checked, installed, and tested without errors. ```bash * installing *source* package ‘FairMclus’ ... ** this is package ‘FairMclus’ version ‘2.2.1’ ** package ‘FairMclus’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (FairMclus) ``` -------------------------------- ### GOxploreR installation process (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This output details the installation steps for the development version of GOxploreR, highlighting a byte-compilation error related to the 'id' object and dplyr. ```text * installing *source* package ‘GOxploreR’ ... ** this is package ‘GOxploreR’ version ‘1.2.8’ ** package ‘GOxploreR’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error: object ‘id’ is not exported by 'namespace:dplyr' Execution halted ERROR: lazy loading failed for package ‘GOxploreR’ * removing ‘/tmp/workdir/GOxploreR/new/GOxploreR.Rcheck/GOxploreR’ ``` -------------------------------- ### R Package Installation Check: 'ggmosaic' Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This output indicates a general installation failure for the 'ggmosaic' package, preventing it from being installed. The specific details of the failure can be found in the '00install.out' file. ```R * checking whether package ‘ggmosaic’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/ggmosaic/new/ggmosaic.Rcheck/00install.out’ for details. ``` -------------------------------- ### dsTidyverseClient Devel Installation Log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Log output from the development version of dsTidyverseClient installation, indicating a successful check process. ```log * using log directory ‘/tmp/workdir/dsTidyverseClient/new/dsTidyverseClient.Rcheck’ * using R version 4.5.1 (2025-06-13) * 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 ‘dsTidyverseClient/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 ``` -------------------------------- ### Successful IVPP Package Installation Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Indicates a successful installation process for the IVPP package from source. ```R * installing *source* package ‘IVPP’ ... ** this is package ‘IVPP’ version ‘1.1.1’ ** package ‘IVPP’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (IVPP) ``` -------------------------------- ### General Installation Failure Message Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md A generic error message indicating that package installation failed and directing the user to a log file for details. ```text Installation failed. See ‘/tmp/workdir/kerastuneR/new/kerastuneR.Rcheck/00install.out’ for details. ``` -------------------------------- ### Package Installation Check Failure Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This indicates a general failure during the 'checking whether package can be installed' phase. The specific reason for the failure is detailed in the '00install.out' file, which should be consulted for further debugging. ```text Installation failed. See ‘/tmp/workdir/amberr/new/amberr.Rcheck/00install.out’ for details. ``` ```text Installation failed. See ‘/tmp/workdir/amt/new/amt.Rcheck/00install.out’ for details. ``` ```text Installation failed. See ‘/tmp/workdir/bayesdfa/new/bayesdfa.Rcheck/00install.out’ for details. ``` ```text Installation failed. See ‘/tmp/workdir/bootnet/new/bootnet.Rcheck/00install.out’ for details. ``` -------------------------------- ### dsTidyverseClient CRAN Installation Log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Log output from the CRAN version of dsTidyverseClient installation, showing a successful check process. ```log * using log directory ‘/tmp/workdir/dsTidyverseClient/old/dsTidyverseClient.Rcheck’ * using R version 4.5.1 (2025-06-13) * 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 ‘dsTidyverseClient/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 ``` -------------------------------- ### Kerntools Package Installation Failure Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This error occurs during the installation of the 'kerntools' package, indicating a failure in the installation process. Check the installation output file for detailed reasons. ```text Installation failed. See ‘/tmp/workdir/kerntools/new/kerntools.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Check: 'IVPP' Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This indicates that the 'IVPP' package failed to install successfully. The '00install.out' file contains the specific error messages and details regarding the installation failure. ```R * checking whether package ‘IVPP’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/IVPP/new/IVPP.Rcheck/00install.out’ for details. ``` -------------------------------- ### EcoEnsemble Installation Failure Log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Log detailing the installation failure of the EcoEnsemble package, including C++ compilation errors and a 'Killed' signal. ```log * installing *source* package ‘EcoEnsemble’ ... ** this is package ‘EcoEnsemble’ version ‘1.1.2’ ** package ‘EcoEnsemble’ successfully unpacked and MD5 sums checked ** using staged installation ** 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.5.1/lib/R/include" -DNDEBUG -I"../inst/include" -I"/usr/local/lib/R/site-library/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/usr/local/lib/R/site-library/BH/include' -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppEigen/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -I'/usr/local/lib/R/site-library/rstan/include' -I'/usr/local/lib/R/site-library/StanHeaders/include' -I/usr/local/include -I'/usr/local/lib/R/site-library/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS -fpic -g -O2 -c KF_back.cpp -o KF_back.o ... /usr/local/lib/R/site-library/StanHeaders/include/src/stan/mcmc/hmc/hamiltonians/dense_e_metric.hpp:22:0: required from ‘double stan::mcmc::dense_e_metric::T(stan::mcmc::dense_e_point&) [with Model = model_ensemble_model_hierarchical_namespace::model_ensemble_model_hierarchical; BaseRNG = boost::random::additive_combine_engine, boost::random::linear_congruential_engine >]’ /usr/local/lib/R/site-library/StanHeaders/include/src/stan/mcmc/hmc/hamiltonians/dense_e_metric.hpp:21:0: required from here /usr/local/lib/R/site-library/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:654:74: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__m128d’} [-Wignored-attributes] 654 | return internal::first_aligned::alignment),Derived>(m); | ^~~~~~~~~ g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make: *** [/opt/R/4.5.1/lib/R/etc/Makeconf:209: stanExports_ensemble_model_hierarchical.o] Error 1 ERROR: compilation failed for package ‘EcoEnsemble’ * removing ‘/tmp/workdir/EcoEnsemble/new/EcoEnsemble.Rcheck/EcoEnsemble’ ``` -------------------------------- ### amt Package Successful Installation Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This output confirms the successful installation of the 'amt' package, including all steps from unpacking to testing. ```r * installing *source* package ‘amt’ ... ** this is package ‘amt’ version ‘0.3.0.0’ ** package ‘amt’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (amt) ``` -------------------------------- ### R Package Installation Success Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This output indicates that the 'bootnet' package was successfully installed, unpacked, checked, and prepared for loading. It signifies a successful build process. ```r * installing *source* package ‘bootnet’ ... ** this is package ‘bootnet’ version ‘1.6’ ** package ‘bootnet’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (bootnet) ``` -------------------------------- ### General Installation Failure Message Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md A generic error message indicating that a package installation has failed. The specific details are usually found in a separate log file. ```text Installation failed. See ‘/tmp/workdir/tidyjson/new/tidyjson.Rcheck/00install.out’ for details. ``` ```text Installation failed. See ‘/tmp/workdir/tricolore/new/tricolore.Rcheck/00install.out’ for details. ``` ```text Installation failed. See ‘/tmp/workdir/TriDimRegression/new/TriDimRegression.Rcheck/00install.out’ for details. ``` -------------------------------- ### Accessing warnings from arrange() Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/conditions.md This example demonstrates how to access a specific warning generated during the `arrange()` operation from the collected warnings list. ```R warnings[[33]] ``` -------------------------------- ### kerntools Successful Installation (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Indicates a successful installation process for the kerntools package from CRAN. ```R * installing *source* package ‘kerntools’ ... ** this is package ‘kerntools’ version ‘1.2.0’ ** package ‘kerntools’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (kerntools) ``` -------------------------------- ### galvanizer Installation Failure Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This snippet indicates a general installation failure for the 'galvanizer' package. The error message 'Installation failed. See ‘/tmp/workdir/galvanizer/new/galvanizer.Rcheck/00install.out’ for details.' suggests that the specific cause of the failure needs to be investigated in the mentioned log file. ```bash * checking whether package ‘galvanizer’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/galvanizer/new/galvanizer.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Check: 'GOxploreR' Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This output shows that the 'GOxploreR' package failed its installation check. For a detailed explanation of the failure, consult the '00install.out' file located in the specified Rcheck directory. ```R * checking whether package ‘GOxploreR’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/GOxploreR/new/GOxploreR.Rcheck/00install.out’ for details. ``` -------------------------------- ### rshift Package Installation Failure (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Installation log for the rshift package from CRAN. Similar to the devel installation, it fails during Rust compilation due to a Cargo.lock parsing error. ```text * installing *source* package ‘rshift’ ... ** this is package ‘rshift’ version ‘3.1.2’ ** package ‘rshift’ successfully unpacked and MD5 sums checked ** using staged installation Using cargo 1.75.0 Using rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball) Building for CRAN. Writing `src/Makevars`. `tools/config.R` has finished. ** libs ... export CARGO_HOME=/tmp/workdir/rshift/old/rshift.Rcheck/00_pkg_src/rshift/src/.cargo && \ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cargo/bin" && \ RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target error: failed to parse lock file at: /tmp/workdir/rshift/old/rshift.Rcheck/00_pkg_src/rshift/src/rust/Cargo.lock Caused by: lock file version 4 requires `-Znext-lockfile-bump` make: *** [Makevars:28: rust/target/release/librshift.a] Error 101 ERROR: compilation failed for package ‘rshift’ * removing ‘/tmp/workdir/rshift/old/rshift.Rcheck/rshift’ ``` -------------------------------- ### Install Development Version of dplyr Source: https://github.com/tidyverse/dplyr/blob/main/README.md Installs the development version of dplyr from GitHub, useful for accessing the latest features or bug fixes. ```r # install.packages("pak") pak::pak("tidyverse/dplyr") ``` -------------------------------- ### stoRy Package Installation Failure (CRAN) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Installation log for the stoRy package from CRAN, showing a failure during lazy loading. The error is related to an object not being exported by the 'purrr' namespace. ```text * installing *source* package ‘stoRy’ ... ** this is package ‘stoRy’ version ‘0.2.2’ ** package ‘stoRy’ successfully unpacked and MD5 sums checked ** using staged installation ** R Warning: namespace ‘stoRy’ is not available and has been replaced by .GlobalEnv when processing object ‘background_collection’ ** inst ** byte-compile and prepare package for lazy loading Error: object ‘at_depth’ is not exported by 'namespace:purrr' Execution halted ERROR: lazy loading failed for package ‘stoRy’ * removing ‘/tmp/workdir/stoRy/old/stoRy.Rcheck/stoRy’ ``` -------------------------------- ### Installation Failed: tidyjson Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This error occurs during the installation of the 'tidyjson' package, indicating a failure in the byte-compilation step due to an unexported object from the 'purrr' package. ```R * installing *source* package ‘tidyjson’ ... ** this is package ‘tidyjson’ version ‘0.3.2’ ** package ‘tidyjson’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error: object ‘at_depth’ is not exported by 'namespace:purrr' Execution halted ERROR: lazy loading failed for package ‘tidyjson’ * removing ‘/tmp/workdir/tidyjson/new/tidyjson.Rcheck/tidyjson’ ``` ```R * installing *source* package ‘tidyjson’ ... ** this is package ‘tidyjson’ version ‘0.3.2’ ** package ‘tidyjson’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error: object ‘at_depth’ is not exported by 'namespace:purrr' Execution halted ERROR: lazy loading failed for package ‘tidyjson’ * removing ‘/tmp/workdir/tidyjson/old/tidyjson.Rcheck/tidyjson’ ``` -------------------------------- ### GOxploreR installation failure log Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This log indicates a complete failure during the installation of the GOxploreR package. The specific error details can be found in the '00install.out' file. ```text Installation failed. See ‘/tmp/workdir/GOxploreR/new/GOxploreR.Rcheck/00install.out’ for details. ``` -------------------------------- ### amt Package Installation Error Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This error signifies that the 'amt' package installation failed. Refer to the '00install.out' file for detailed reasons. ```r Installation failed. See ‘/tmp/workdir/amt/new/amt.Rcheck/00install.out’ for details. ``` -------------------------------- ### Installation Failed: TriDimRegression Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This error occurs during the installation of the 'TriDimRegression' package, indicating a configuration failure because the 'rstantools' package is not found. ```R * installing *source* package ‘TriDimRegression’ ... ** this is package ‘TriDimRegression’ version ‘1.0.3’ ** package ‘TriDimRegression’ successfully unpacked and MD5 sums checked ** using staged installation Error in loadNamespace(x) : there is no package called ‘rstantools’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: configuration failed for package ‘TriDimRegression’ * removing ‘/tmp/workdir/TriDimRegression/new/TriDimRegression.Rcheck/TriDimRegression’ ``` ```R * installing *source* package ‘TriDimRegression’ ... ** this is package ‘TriDimRegression’ version ‘1.0.3’ ** package ‘TriDimRegression’ successfully unpacked and MD5 sums checked ** using staged installation Error in loadNamespace(x) : there is no package called ‘rstantools’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: configuration failed for package ‘TriDimRegression’ * removing ‘/tmp/workdir/TriDimRegression/old/TriDimRegression.Rcheck/TriDimRegression’ ``` -------------------------------- ### Default value size check Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/recode-values.md This example demonstrates an error when the size of the 'default' argument cannot be recycled to match the size of 'x'. ```R recode_values(1:3, 1 ~ 0, default = 1:5) ``` -------------------------------- ### stoRy Package Installation Failure (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Log detailing the installation failure of the stoRy package in development mode. The error occurs during lazy loading due to an unexported object from the 'purrr' namespace. ```text * installing *source* package ‘stoRy’ ... ** this is package ‘stoRy’ version ‘0.2.2’ ** package ‘stoRy’ successfully unpacked and MD5 sums checked ** using staged installation ** R Warning: namespace ‘stoRy’ is not available and has been replaced by .GlobalEnv when processing object ‘background_collection’ ** inst ** byte-compile and prepare package for lazy loading Error: object ‘at_depth’ is not exported by 'namespace:purrr' Execution halted ERROR: lazy loading failed for package ‘stoRy’ * removing ‘/tmp/workdir/stoRy/new/stoRy.Rcheck/stoRy’ ``` -------------------------------- ### get_slice_size() snapshots for proportional slicing Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/slice.md These examples show the output of get_slice_size() with different proportional values for 'prop', demonstrating clamping and handling of 'allow_outsize'. ```R body(get_slice_size(prop = 0)) ``` ```R body(get_slice_size(prop = 0.4)) ``` ```R body(get_slice_size(prop = 2)) ``` ```R body(get_slice_size(prop = 2, allow_outsize = TRUE)) ``` ```R body(get_slice_size(prop = -0.4)) ``` ```R body(get_slice_size(prop = -2)) ``` -------------------------------- ### Handle missing stringi for locale-specific arrange() Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/arrange.md Arranging data in a locale other than the system default requires the 'stringi' package. An error is raised if 'stringi' is not installed. ```R locale_to_chr_proxy_collate("fr", has_stringi = FALSE) ``` -------------------------------- ### R Package Installation Failure Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This message signifies a general failure during the installation process of the 'multinma' package. Refer to the '00install.out' file for detailed error logs. ```text * checking whether package ‘multinma’ can be installed ... ERROR Installation failed. See ‘/tmp/workdir/multinma/new/multinma.Rcheck/00install.out’ for details. ``` -------------------------------- ### Accessing warnings from summarise() Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/conditions.md This example shows how to access a specific warning generated during the `summarise()` operation from the collected warnings list. ```R warnings[[97]] ``` -------------------------------- ### Amt CRAN Installation Success Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This log shows a successful installation of the 'amt' package from CRAN. It details the steps from unpacking the source to testing the loaded package, indicating all stages completed without errors. ```R * installing *source* package ‘amt’ ... ** this is package ‘amt’ version ‘0.3.0.0’ ** package ‘amt’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (amt) ``` -------------------------------- ### R Package Installation Error: 'IVPP' (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Similar to 'GOxploreR', this development installation error arises because the 'id' object is not exported by the 'dplyr' namespace. Verify 'dplyr' version compatibility and exported functions. ```R * installing *source* package ‘IVPP’ ... ** this is package ‘IVPP’ version ‘1.1.1’ ** package ‘IVPP’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error: object ‘id’ is not exported by 'namespace:dplyr' Execution halted ERROR: lazy loading failed for package ‘IVPP’ * removing ‘/tmp/workdir/IVPP/new/IVPP.Rcheck/IVPP’ ``` -------------------------------- ### Error: Cannot supply both .before and .after in relocate Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/relocate.md When using the relocate function, you can only specify either the .before or .after argument, but not both simultaneously. This example demonstrates the error that occurs when both are provided. ```r relocate(df, .before = 1, .after = 1) ``` -------------------------------- ### Show and Explain SQL Queries with show_query() and explain() Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md Use show_query() and explain() instead of the removed show_sql() and explain_sql() functions and their corresponding global options. ```R show_query() ``` ```R explain() ``` -------------------------------- ### Dexter Example Execution Error Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This code block illustrates an error encountered during the checking of examples for the dexter package. It involves an issue with initializing an object, leading to an error during DIF analysis. ```r RcppArmadillo::armadillo_throttle_cores(1) db = start_new_project(verbAggrRules, ":memory:", person_properties=list(gender='unknown')) add_booklet(db, verbAggrData, "agg") no column `person_id` provided, automatically generating unique person id's $items [1] "S1DoCurse" "S1DoScold" "S1DoShout" "S1WantCurse" "S1WantScold" [6] "S1WantShout" "S2DoCurse" "S2DoScold" "S2DoShout" "S2WantCurse" [11] "S2WantScold" "S2WantShout" "S3DoCurse" "S3DoScold" "S3DoShout" [16] "S3WantCurse" "S3WantScold" "S3WantShout" "S4DoCurse" "S4DoScold" [21] "S4DoShout" "S4WantCurse" "S4WantScold" "S4WantShout" $person_properties [1] "gender" $columns_ignored [1] "anger" dd = DIF(db,person_property="gender") Error in .Object$initialize(...) : 'list' object cannot be coerced to type 'logical' Calls: DIF ... progress_bar -> new -> initialize -> initialize -> Execution halted ``` -------------------------------- ### Installation Failed: tricolore Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This error indicates a failure during the installation of the 'tricolore' package, specifically within the 'ggtern' dependency, due to invalid properties for 'ggplot2::element_line'. ```R * installing *source* package ‘tricolore’ ... ** this is package ‘tricolore’ version ‘1.2.4’ ** package ‘tricolore’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error: .onLoad failed in loadNamespace() for 'ggtern', details: call: NULL error: object properties are invalid: - @lineend must be or , not S3 Execution halted ERROR: lazy loading failed for package ‘tricolore’ * removing ‘/tmp/workdir/tricolore/new/tricolore.Rcheck/tricolore’ ``` ```R * installing *source* package ‘tricolore’ ... ** this is package ‘tricolore’ version ‘1.2.4’ ** package ‘tricolore’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error: .onLoad failed in loadNamespace() for 'ggtern', details: call: NULL error: object properties are invalid: - @lineend must be or , not S3 Execution halted ERROR: lazy loading failed for package ‘tricolore’ * removing ‘/tmp/workdir/tricolore/old/tricolore.Rcheck/tricolore’ ``` -------------------------------- ### Install Source Package (FairMclus) - Lazy Loading Error Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This snippet details an error during the installation of the 'FairMclus' package from source. The error 'object ‘id’ is not exported by 'namespace:dplyr'' indicates a problem with how the package interacts with or depends on dplyr's exported objects. ```text * installing *source* package ‘FairMclus’ ... ** this is package ‘FairMclus’ version ‘2.2.1’ ** package ‘FairMclus’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error: object ‘id’ is not exported by 'namespace:dplyr' Execution halted ERROR: lazy loading failed for package ‘FairMclus’ * removing ‘/tmp/workdir/FairMclus/new/FairMclus.Rcheck/FairMclus’ ``` -------------------------------- ### Removed show_sql() and explain_sql() Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md show_sql() and explain_sql() and their matching global options have been removed. Use show_query() and explain() instead. ```R show_sql() ``` ```R explain_sql() ``` -------------------------------- ### rshift Package Installation Failure (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Installation log for the rshift package in development mode. It indicates a failure during the Rust compilation step due to an issue parsing the Cargo.lock file. ```text * installing *source* package ‘rshift’ ... ** this is package ‘rshift’ version ‘3.1.2’ ** package ‘rshift’ successfully unpacked and MD5 sums checked ** using staged installation Using cargo 1.75.0 Using rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball) Building for CRAN. Writing `src/Makevars`. `tools/config.R` has finished. ** libs ... export CARGO_HOME=/tmp/workdir/rshift/new/rshift.Rcheck/00_pkg_src/rshift/src/.cargo && \ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cargo/bin" && \ RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target error: failed to parse lock file at: /tmp/workdir/rshift/new/rshift.Rcheck/00_pkg_src/rshift/src/rust/Cargo.lock Caused by: lock file version 4 requires `-Znext-lockfile-bump` make: *** [Makevars:28: rust/target/release/librshift.a] Error 101 ERROR: compilation failed for package ‘rshift’ * removing ‘/tmp/workdir/rshift/new/rshift.Rcheck/rshift’ ``` -------------------------------- ### Add explain() method for src_mysql() Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md The src_mysql() function now includes a method for explain(). ```r src_mysql() gains a method for explain() ``` -------------------------------- ### Print method with multiple closest() calls Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/join-by.md Example of the print method output when multiple 'closest()' conditions are specified. ```R join_by(a == a, closest(b >= c), closest(d < e)) ``` -------------------------------- ### Example Check Error in corella using dplyr Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This error trace shows a failure during example checks in the corella package, involving dplyr's mutate and case_when functions. The root cause appears to be incompatible types in case_when. ```text ... 2. │ └─corella:::check_dataframe(.df) 3. │ └─corella:::check_contains_terms(...) 4. │ └─corella:::full_workflow_message(...) 5. │ └─corella:::minreq_terms_message(req_terms_results) 6. │ └─corella:::build_req_terms_table(req_terms_results) 7. │ ├─tidyr::replace_na(...) 8. │ ├─dplyr::mutate(...) 9. │ └─dplyr:::mutate.data.frame(...) 10. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 11. │ ├─base::withCallingHandlers(...) 12. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 13. │ └─mask$eval_all_mutate(quo) 14. │ └─dplyr (local) eval() 15. ├─dplyr::case_when(...) 16. │ └─vctrs::vec_case_when(...) 17. └─vctrs (local) ``() 18. └─vctrs::vec_default_ptype2(...) 19. ├─base::withRestarts(...) 20. │ └─base (local) withOneRestart(expr, restarts[[1L]]) 21. │ └─base (local) doWithOneRestart(return(expr), restart) 22. └─vctrs::stop_incompatible_type(...) 23. └─vctrs:::stop_incompatible(...) 24. └─vctrs:::stop_vctrs(...) 25. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call) Execution halted ``` -------------------------------- ### Bayesdfa Installation Error: rstantools not found Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md This error occurs during package installation when the 'rstantools' package cannot be loaded. This typically means the 'rstantools' package is not installed or cannot be found in the R environment, preventing bayesdfa from configuring. ```R * installing *source* package ‘bayesdfa’ ... ** this is package ‘bayesdfa’ version ‘1.3.4’ ** package ‘bayesdfa’ successfully unpacked and MD5 sums checked ** using staged installation Error in loadNamespace(x) : there is no package called ‘rstantools’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: configuration failed for package ‘bayesdfa’ * removing ‘/tmp/workdir/bayesdfa/new/bayesdfa.Rcheck/bayesdfa’ ``` -------------------------------- ### Accessing specific warnings Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/conditions.md You can access individual warnings from the collected list using their index. This example retrieves the first warning related to the `filter()` operation. ```R warnings <- last_dplyr_warnings(Inf) warnings[[1]] ``` -------------------------------- ### Simulate Random Effects with REsim Source: https://github.com/tidyverse/dplyr/blob/main/revdep/problems.md This example demonstrates simulating random effects from a merMod object. It requires the lme4 package. The error indicates a mismatch in row counts during data replacement. ```R require(lme4) m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) re2 <- REsim(m2, 25) ``` -------------------------------- ### Accessing warnings from mutate() Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/conditions.md Retrieve a specific warning generated by the `mutate()` operation from the collected warnings. This example targets a warning from the `mutate()` step. ```R warnings[[65]] ``` -------------------------------- ### get_slice_size() snapshots for integer 'n' argument Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/slice.md These examples show the output of get_slice_size() with different integer values for 'n', demonstrating clamping and handling of 'allow_outsize'. ```R body(get_slice_size(n = 0)) ``` ```R body(get_slice_size(n = 4)) ``` ```R body(get_slice_size(n = 20)) ``` ```R body(get_slice_size(n = 20, allow_outsize = TRUE)) ``` ```R body(get_slice_size(n = -4)) ``` ```R body(get_slice_size(n = -20)) ``` -------------------------------- ### order_by() with window functions Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md order_by() now functions correctly in conjunction with window functions in databases that support them. ```r order_by() now works in conjunction with window functions in databases that support them. ``` -------------------------------- ### New arguments for sample_n, sample_frac, filter, slice, group_by Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md Several functions have gained new arguments: `sample_n()` and `sample_frac()` now accept `...`, `filter()` and `slice()` have gained `.preserve`, and `group_by()` has gained `.drop`. These additions provide more control and flexibility. ```R - `sample_n()` and `sample_frac()` have gained `...` - `filter()` and `slice()` have gained `.preserve` - `group_by()` has gained `.drop` ``` -------------------------------- ### Error labels with expansion Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/pick.md When expansion occurs, error labels in pick() use the pre-expansion quosure. This example shows an error when a function returns incompatible vectors across groups. ```R mutate(df, if (cur_group_id() == 1L) pick(x) else "x", .by = g) ``` -------------------------------- ### kerntools Installation Failure (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md An installation error for kerntools during development, reporting an 'object not exported' error from the 'dplyr' namespace during byte-compilation. ```R * installing *source* package ‘kerntools’ ... ** this is package ‘kerntools’ version ‘1.2.0’ ** package ‘kerntools’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error: object ‘id’ is not exported by 'namespace:dplyr' Execution halted ERROR: lazy loading failed for package ‘kerntools’ * removing ‘/tmp/workdir/kerntools/new/kerntools.Rcheck/kerntools’ ``` -------------------------------- ### List 'from' and 'to' treated as lists of vectors Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/recode-values.md This example shows an error when 'from[[1]]' cannot be converted to a list, indicating that list 'from' and 'to' are treated as lists of vectors. ```R recode_values(x, from = from, to = to) ``` -------------------------------- ### Using filter() for relational database slicing Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md When working with relational databases where slice() is not supported, use filter() to achieve similar results. This example demonstrates how to select rows based on their position. ```R filter(data, row_number() %in% 1:5) ``` -------------------------------- ### kerastuneR Installation Failure (Devel) Source: https://github.com/tidyverse/dplyr/blob/main/revdep/failures.md Shows an installation error for kerastuneR during development, specifically an 'object not exported' error from the 'purrr' namespace during byte-compilation. ```R * installing *source* package ‘kerastuneR’ ... ** this is package ‘kerastuneR’ version ‘0.1.0.7’ ** package ‘kerastuneR’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error: object ‘at_depth’ is not exported by 'namespace:purrr' Execution halted ERROR: lazy loading failed for package ‘kerastuneR’ * removing ‘/tmp/workdir/kerastuneR/new/kerastuneR.Rcheck/kerastuneR’ ``` -------------------------------- ### Type stability of replace_values with 'from' and 'to' (character to factor) Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/recode-values.md This example shows an error when 'from' (character) cannot be converted to the type of 'x' (factor) with loss of generality. ```R replace_values(x, from = "c", to = "b") ``` -------------------------------- ### Collect warnings from dplyr verbs Source: https://github.com/tidyverse/dplyr/blob/main/tests/testthat/_snaps/conditions.md This example shows how warnings are generated and collected when using dplyr's main verbs with a function that produces warnings. Use `last_dplyr_warnings()` to access these warnings. ```R invisible(summarise(mutate(arrange(filter(rowwise(mtcars), f()), f()), a = f()), b = f())) ``` -------------------------------- ### Connect to a database using DBI Source: https://github.com/tidyverse/dplyr/blob/main/NEWS.md Use DBI to connect to a database and create a dplyr table. This is the recommended style for database interactions. ```R library(dplyr) con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:") DBI::dbWriteTable(con, "mtcars", mtcars) mtcars2 <- tbl(con, "mtcars") mtcars2 ```