Using
library(htm2txt)
url <- 'https://en.wikipedia.org/wiki/Alan_Turing'
clear.text <- gettxt(url)
code i'm getting
clear.text
[1] "Alan Turing\n\nFrom Wikipedia, the free encyclopedia\n\nJump to navigation\tJump to search\n\n\"Turing\" redirects here. For other uses, see Turing (disambiguation).\n\nmathematician and computer scientist\n\nAlan Turing\n\nOBE FRS\n\nTuring aged 16\n\nBorn (1912-06-23)23 June 1912\n\nM...
and this data i would like to store in tidy object like in:
tidy.text <- tidy(clear.text)
but i get
'tidy.character' is deprecated.
and result is
# A tibble: 1 x 1
x
<chr>
1 "Alan Turing\n\nFrom Wikipedia, the free encyclopedia\n\nJump to navigation\tJum
>
How can i therefore converd such a plain text to tidy format?
Thank You for any advance.