-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core Function Changes to Accommodate Empty Lists in Recursion, Covr B…
…ehavior on Windows & Vignette Path Warnings (#322)
- Loading branch information
Showing
18 changed files
with
319 additions
and
114 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,12 @@ | ||
Package: control | ||
Type: Package | ||
Title: Have self control, don't break! | ||
Version: 0.1 | ||
Author: Brian Burns | ||
Maintainer: Brian Burns <[email protected]> | ||
Description: This package is used to test that functions in pkgnet don't break on control statements. | ||
Imports: | ||
R6 | ||
License: file LICENSE | ||
LazyData: TRUE | ||
RoxygenNote: 7.3.1 |
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 @@ | ||
this is a test package |
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,5 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(next_up) | ||
export(take_a_break) | ||
export(testClass) |
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,23 @@ | ||
#' @title Take a Break | ||
#' @name take_a_break | ||
#' @description Test if .parse_function() breaks with control function 'break' | ||
#' @export | ||
take_a_break <- function() { | ||
for (i in 1:10){ | ||
if (i==5){ | ||
break | ||
} | ||
} | ||
} | ||
|
||
#' @title Next Up | ||
#' @name next_up | ||
#' @description Test if .parse_function() breaks with control function 'next' | ||
#' @export | ||
next_up <- function() { | ||
for (i in 1:10){ | ||
if (i==5){ | ||
next | ||
} | ||
} | ||
} |
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,29 @@ | ||
#' Test Class for Control Statements | ||
#' | ||
#' @description A Test Class for Control Statements handling in R6 | ||
#' @export | ||
testClass <- R6::R6Class( | ||
classname = "testClass", | ||
public = list( | ||
#' @description | ||
#' Test if .parse_R6_expression () breaks with control function 'break' | ||
#' @return Nothing | ||
take_a_break = function() { | ||
for (i in 1:10){ | ||
if (i==5){ | ||
break | ||
} | ||
} | ||
}, | ||
#' @description | ||
#' Test if .parse_R6_expression () breaks with control function 'next' | ||
#' @return Nothing | ||
next_up = function() { | ||
for (i in 1:10){ | ||
if (i==5){ | ||
next | ||
} | ||
} | ||
} | ||
) | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.