This will fix the error.
b<-Corpus(a,
But I think you need to use an xml reader to read your Html. Sort of:
r <- Corpus(DirSource('c:\test'), readerControl = list(reader = readXML),spec)
But you need to provide a spec argument, which depends on your file structure. see for example readReut21578XML . This is a good example of an xml / html parser.
source share