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 Voltaire’s Candide books in French, Spanish and Italian.
Download Sonnet 18 of William Shakespeare.
Download 154 Sonnets of William Shakespeare.
For more information on how to use wikisourcer, please read the vignette.