last_dplyr_warnings: Show warnings from the last command

View source: R/conditions.R

last_dplyr_warningsR Documentation

Show warnings from the last command

Description

Warnings that occur inside a dplyr verb like mutate() are caught and stashed away instead of being emitted to the console. This prevents rowwise and grouped data frames from flooding the console with warnings. To see the original warnings, use last_dplyr_warnings().

Usage

last_dplyr_warnings(n = 5)

Arguments

n

Passed to head() so that only the first n warnings are displayed.


tidyverse/dplyr documentation built on Nov. 4, 2024, 2:44 a.m.