inst/doc/README.R

## ----eval=FALSE---------------------------------------------------------------
#  total <- 0
#  repeat total <- total + nextOr(it, break)

## ----eval=FALSE---------------------------------------------------------------
#  total <- 0
#  tryCatch(
#    repeat total <- total + nextElem(it),
#    error=function(x) {
#      if (conditionMessage(x) != "StopIteration") stop(x)
#    }
#  )

## ---- eval=FALSE--------------------------------------------------------------
#  devtools::install_github('crowding/iterors')

## ---- eval=FALSE--------------------------------------------------------------
#  install.packages('iterors', dependencies=TRUE)

Try the iterors package in your browser

Any scripts or data that you put into this service are public.

iterors documentation built on May 31, 2023, 5:36 p.m.