The wikisourcer R package helps you download public domain works from the free library Wikisource.

It includes two functions for downloading books and pages by url.

Minimal examples

Download Voltaire’s philosophical novel Candide.



Download Voltaire’s Candide books in French, Spanish and Italian.

Download Sonnet 18 of William Shakespeare.


wikisource_page("", "Sonnet 18")

Download 154 Sonnets of William Shakespeare.

For more information on how to use wikisourcer, please read the vignette.