Displaying 2 results from an estimated 2 matches for "function_b".
2020 Jan 24
3
R package builder silently continues after unclosed brace
If you start a function in one file but don't close it, the package
will still build if you manage to close it in a later file. Like so:
a.R
b.R
c.R
a.R:
function_a <- function(){
print("this is function_a")
}
b.R:
function_b <- function(){
print("unclosed function_b")
# no closing }
c.R:
function_c <- function(){
print("function_c will be part of function_b")
}
#extra closing } to close function_b
}
--------
The package builder will import `a.R` and `b.R`. And because
function_b was nev...
2020 Jan 25
0
R package builder silently continues after unclosed brace
...If you start a function in one file but don't close it, the package
> will still build if you manage to close it in a later file. Like so:
>
> a.R
> b.R
> c.R
>
> a.R:
> function_a <- function(){
> print("this is function_a")
> }
>
> b.R:
> function_b <- function(){
> print("unclosed function_b")
> # no closing }
>
> c.R:
> function_c <- function(){
> print("function_c will be part of function_b")
> }
> #extra closing } to close function_b
> }
>
> --------
>
> The package build...