В Sun, 11 Aug 2024 22:36:08 +0800
Steven Yen <st...@ntu.edu.tw> пишет:

> All I need is printing by returning out (unless I turn it off). And, 
> retrieve ap and vap as needed as shown above. Guess I need to read
> more about invisible.

Perhaps you could print(out) instead of returning it in the if
(printing) branch? Then you would be able to always
return(invisible(list("ei"=ap,"vi"=vap))), whether printing is TRUE or
not.

-- 
Best regards,
Ivan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to