-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into f-2198-lazy-order
- Loading branch information
Showing
25 changed files
with
371 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Rcpp_version <- utils::packageVersion("Rcpp") | ||
R_version <- R.version.string | ||
|
||
#' Dr Dplyr checks your installation for common problems. | ||
#' | ||
#' Only run this if you are seeing problems, like random crashes. | ||
#' It's possible for `dr_dplyr` to return false positives, so there's no | ||
#' need to run if all is ok. | ||
#' | ||
#' @export | ||
#' @examples | ||
#' \dontrun{ | ||
#' dr_dplyr() | ||
#' } | ||
dr_dplyr <- function() { | ||
if (Rcpp_version != utils::packageVersion("Rcpp")) { | ||
warning( | ||
"Installed Rcpp (", utils::packageVersion("Rcpp"), ") different from ", | ||
"Rcpp used to build dplyr (", Rcpp_version, ").\n", | ||
"Please reinstall dplyr to avoid random crashes or undefined behavior.", | ||
call. = FALSE | ||
) | ||
} | ||
|
||
if (R_version != R.version.string) { | ||
warning( | ||
"Installed R (", R.version.string, ") different from ", | ||
"R used to build dplyr (", R_version, ").\n", | ||
"Please reinstall dplyr to avoid random crashes or undefined behavior.", | ||
call. = FALSE | ||
) | ||
} | ||
|
||
invisible(NULL) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.