e <- einfo()
## return XML as an 'XMLInternalDocument'.
content(e, "xml")
## return XML as character string.
cat(content(e, "text"))
## return DbNames parsed into a character vector.
content(e, "parsed")
## return a textConnection to allow linewise read of the data.
x <- efetch("CP000828", "nuccore", rettype = "gbwithparts", retmode = "text")
con <- content(x, "textConnection")
readLines(con, 2)
close(con)
Run the code above in your browser using DataLab