I guess you could use this as a workaround if you don't have fortune installed (on any system) - requires internet access and isn't quite as fast as using fortune locally and you don't have the option of adding any options to your fortune but here it goes:
Example use:
Don't take this as me saying that you shouldn't use a *nix though.
Code:
# require(RCurl) # RCurl needs to be installed but we'll use :: notation to use the function of interest
fortune <- function(){
cat(RCurl::getURL("http://www.fortunefortoday.com/getfortuneonly.php"))
}
Code:
> fortune()
Applying computer technology is simply finding the right wrench to pound in the correct screw.
> fortune()
"Happiness is Planet Earth in your rear-view mirror."
-- Sam Hurt