The R package itertools2 is a port of Python's excellent itertools
module to R for efficient
looping and is a replacement for the existing itertools R
package.
You can install the stable version on CRAN:
install.packages('itertools2', dependencies=TRUE)
If you prefer to download the latest version, instead type:
library(devtools)
install_github('ramhiser/itertools2')