Vignettes from package 'permute'
Restricted permutations; using the permute package -
PDF
R
LaTeX/noweb