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.
Download Voltaire’s philosophical novel Candide.
Download Chapter 1 of Candide.
Download Candide in French, Spanish and Italian.
For more information on how to use wikisourcer, please read the vignette.