Omnidirectional R Code Snippets

I tend to repeat the same code chunks over and over again. At first, this was fine for me and I paid little attention to such redundancies. A little later, when I got tired of manually replacing Linux filepaths with the referring Windows versions, and vice versa, I started to stuff some very frequently used work-steps into functions and, even later, into a proper R package. And that's what this package is - a hodgepodge of various R functions meant to simplify (my) everyday-life coding work without, at the same time, being devoted to a particular scope of application.

Omnidirectional R Code Snippets

Tolkien's Orc (source:


Orcs 1.2.0

New features:

  • Moved coords2Lines(), coords2Polygons() from package 'mapview'.
  • substrC() as C++ version of base-R substr().

Orcs 1.1.1


  • Replaced devtools::install_github() with remotes::install_github().

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.1 by Florian Detsch, a year ago

Report a bug at

Browse source code at

Authors: Florian Detsch [cre, aut] , Tim Appelhans [ctb] , Baptiste Auguie [ctb] , OpenStreetMap contributors [cph]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports bookdown, grDevices, grid, knitr, lattice, latticeExtra, plotrix, Rcpp, remotes, rgdal, sf, sp, stats

Depends on methods, raster

Suggests testthat, rmarkdown

Linking to Rcpp

System requirements: GNU make, 7zip, unix2dos

See at CRAN