Skip to content

Commit 0bfa0bf

Browse files
committed
escape %s
1 parent 304bb72 commit 0bfa0bf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

man/fcase.Rd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ fcase(
6161
)
6262
6363
# fcase can be used for recursion, unlike fifelse
64-
gcd_dt <- function(x,y) {
65-
r <- x%%y;
66-
return(fcase(!r, y, r, gcd_dt(x, y))) # Recursive call must be in the last when-value pair
64+
gcd_dt = function(x,y) {
65+
r = x\%\%y
66+
# Recursive call must be in the last when-value pair
67+
return(fcase(!r, y, r, gcd_dt(x, y)))
6768
}
68-
gcd_dt(10, 1)
69+
gcd_dt(10L, 1L)
6970
}
7071
\keyword{ data }

0 commit comments

Comments
 (0)