-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from r-lib/fix/r-cmd-crash
Handle R CMD check crashes better
- Loading branch information
Showing
18 changed files
with
320 additions
and
169 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ context("bad") | |
|
||
test_that("good", { | ||
expect_true(TRUE) | ||
expect_true(FALSE) | ||
}) |
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,18 @@ | ||
Package: badpackage | ||
Title: Advice on R package building | ||
Date: 2016 February | ||
Version: 1.0.0 | ||
Author: Gabor Csardi | ||
Maintainer: Gabor Csardi <[email protected]> | ||
Description: Give advice about good practices when building R packages. | ||
License: GPL | ||
Suggests: | ||
testthat, | ||
knitr, | ||
rmarkdown, | ||
svglite | ||
RoxygenNote: 6.1.0 | ||
Repository: CRAN | ||
Encoding: UTF-8 | ||
VignetteBuilder: knitr | ||
Config/build/clean-inst-doc: FALSE |
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,3 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(foobar2) |
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,20 @@ | ||
|
||
foobar <- function(argument) { | ||
argument | ||
} | ||
|
||
#' foobar2 | ||
#' @export | ||
#' @examples | ||
#' foobar2() | ||
|
||
foobar2 <- function() { | ||
outfile <- Sys.getenv("RCMDCHECK_OUTPUT", "") | ||
if (nzchar(outfile)) { | ||
cat(Sys.getpid(), sep = "\n", file = outfile) | ||
} | ||
} | ||
|
||
foobar2() | ||
|
||
while (TRUE) Sys.sleep(1000) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.