Closed jayqi closed 5 years ago
This was resolved in #18. The new S3 class method tospongebob.fortune
handles returning a valid fortune object with its text converted. This means we can still take advantage of other methods for fortune objects, like print.fortune
.
The
fortunes::fortune()
function unfortunately returns an object with a complex interface:Created on 2019-01-31 by the reprex package (v0.2.1)
The documentation also isn't great, which makes it kludgy to use if you don't remember its class variables. We could make a function like
spongebob_fortune
that does something like:Other packages like
praise::praise()
don't have this problem because they simply return a character string, so we can just provide simple examples in a vignette, per #4.