The Cannibal Islands: Captain Cook's Adventure in the South Seas by Ballantyne, R. M. (Robert Michael)
 is a Project Gutenberg book, now on Github.