Hi all, here is my small piece of codes:
fn1 - function(x = 4) {
y - 0
if(y == 0) cat(y value
is zero\n) # I intentionally created 2nd line here
return(4)
}
If I run this function I get following
fn1()
y value
is zero
[1] 4
Here you see
On Mon, Sep 13, 2010 at 11:53 AM, Christofer Bogaso
bogaso.christo...@gmail.com wrote:
Hi all, here is my small piece of codes:
fn1 - function(x = 4) {
y - 0
if(y == 0) cat(y value
is zero\n) # I intentionally created 2nd line here
return(4)
}
If I run this
Thanks Barry, I agree it will work. But this approach destroys the
indent in the program body therefore entire body of program looks
messy, for example
cat(Here I
put indent)
obviously looks better for someone who reads my code, than
cat(Here I
dont put indent)
Any better approach?
On
On Mon, Sep 13, 2010 at 12:11 PM, Christofer Bogaso
bogaso.christo...@gmail.com wrote:
Thanks Barry, I agree it will work. But this approach destroys the
indent in the program body therefore entire body of program looks
messy, for example
cat(Here I
put indent)
obviously looks
4 matches
Mail list logo