Description Usage Arguments Details Examples
TAlked by SiNo Xmen's Pets
1 2 3 4 5 6 7 8 9 10 11 |
which |
An integer specifying the row number of sinxs.data. Alternatively which can be a character and grep is used to try to find a suitable row. |
sinxs.data |
data frame containing a saying in each row. By default the data from the 'sinx' package are used. |
what |
(character) What do you want to say? See details. |
by |
(character) Type of thing, one of cow, chicken, poop, cat, facecat,
bigcat, longcat, shortcat, behindcat, longtailcat, anxiouscat, grumpycat,
smallcat, ant, pumpkin, ghost, spider, rabbit, pig, snowman, frog, hypnotoad,
signbunny, stretchycat, fish, trilobite, shark, buffalo, clippy, mushroom,
monkey, egret, or rms for Richard Stallman.
Alternatively, use "random" to have your message spoken by a random
character.
We use |
type |
(character) One of message (default), warning, or string
(returns string). If multiple colors are supplied to |
what_color |
(character or crayon function) One or more
|
by_color |
(character or crayon function) One or more
|
length |
(integer) Length of longcat. Ignored if other animals used. |
... |
Further args passed on to |
You can put in any phrase you like, OR you can type in one of a few special phrases that do particular things. They are:
catfact A random cat fact from https://catfact.ninja
fortune A random quote from an R coder, from fortunes library
time Print the current time
rms Prints a random 'fact' about Richard Stallman from the
rmsfact
package. Best paired with by = "rms"
.
Note that if you choose by='hypnotoad'
the quote is forced to be,
as you could imagine, 'All Glory to the HYPNO TOAD!'. For reference see
http://knowyourmeme.com/memes/hypnotoad
Signbunny: It's not for sure known who invented signbunny, but this article http://www.vox.com/2014/9/18/6331753/sign-bunny-meme-explained thinks they found the first use in this tweet: https://twitter.com/wei_bluebear/status/329101645780770817
Trilobite: from http://www.retrojunkie.com/asciiart/animals/dinos.htm (site down though)
Note to Windows users: there are some animals (shortcat, longcat, fish, signbunny, stretchycat, anxiouscat, longtailcat, grumpycat, mushroom) that are not available because they use non-ASCII characters that don't display properly in R on Windows.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | tanx()
for (i in 1:4) tanx(i)
path_f <- system.file("fortunes/fortunes.csv", package = "fortunes")
path_s <- system.file("sinxs/sinxs.csv", package = "sinx")
ftns <- sinx::read.sinxs(c(path_f, path_s), sep = c(";", ","))
sinx::tanx(sinxs.data = ftns)
jinyong <- read.sinxs(lib = "jinyong")
tanx(sinxs.data = jinyong)
libs <- read.sinxs(lib = c("tangshi", "songshi", "chinese", "yangsheng", "english",
"jinyong"))
tanx(42, sinxs.data = libs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.