[R] Possible to pretty-printing using str()?

2010-11-23 Thread Janko Thyson
Dear list, I'm looking for a suitable way to sort of one-line-pretty-print an arbitrary R object in some of my log outputs. Consider this: cat(paste(The object/value is: , x, ., sep=), sep=\n) No problem if x is of class: - character (length=1) - numeric (length=1) - logical

Re: [R] Possible to pretty-printing using str()?

2010-11-23 Thread Janko Thyson
Betreff: [R] Possible to pretty-printing using str()? Dear list, I'm looking for a suitable way to sort of one-line-pretty-print an arbitrary R object in some of my log outputs. Consider this: cat(paste(The object/value is: , x, ., sep=), sep=\n) No problem if x is of class: - character

Re: [R] Possible to pretty-printing using str()?

2010-11-23 Thread Duncan Murdoch
-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Janko Thyson Gesendet: Dienstag, 23. November 2010 20:32 An: r-h...@r-project. org Betreff: [R] Possible to pretty-printing using str()? Dear list, I'm looking for a suitable way to sort of one-line-pretty-print an arbitrary R

Re: [R] Possible to pretty-printing using str()?

2010-11-23 Thread Janko Thyson
: Dienstag, 23. November 2010 20:36 An: 'r-h...@r-project. org' Betreff: Re: [R] Possible to pretty-printing using str()? A short annotation: I already considered deparsing the object via deparse(x), but that's not exactly the info I'd like. I'm only interested in a short summary like str() would