I need to supress output in R language - same as in Matlab with semicolon.
I found invisible()
and sink()
, but nothing works for me same way. Is it possible to do it?
As suggested from Rui, can return output to a vector and remove that vector immediately: s <- capture.output(print(1:1000)); rm(s)
s <- capture.output(print(1:1000)); rm(s)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.