Skip to content

suppress output for meta in package tm

6 messages · Peter Ehlers, jim holtman, Amber Jaycocks

#
Can you wrap your call in capture.output(..., file=...)?

  -Peter Ehlers
Amber Jaycocks wrote:

  
    
#
I don't know anything about pkg:tm, but I'll make a
couple of comments below.
Amber Jaycocks wrote:
or: for(n in seq_along(corpa)){
here, I think, you want:
capture.output(n_corp_file <- meta(corpa[[n]], "URI"), file="log.txt")

and I would use (on Windows): file="clipboard"
You might also find sink() to be more to your taste than
capture.output().

  -Peter