[R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Brian Frizzelle
I've written a function that takes some input data output from a simulation model and creates some graphs. It's not very complicated code, and it works perfectly fine if I just run the code as is. But I have converted it into a function so we call it externally, and when I try to source the

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Wu Gong
I can only repeat your error message :) n256 - paste(rep(A,256),collapse=) assign(n256, 1) n257 - paste(rep(A,257),collapse=) assign(n257, 1) Error in assign(n257, 1) : variable names are limited to 256 bytes - A R learner. -- View this message in context:

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Barry Rowlingson
On Wed, May 26, 2010 at 6:00 PM, Wu Gong gho...@gmail.com wrote: I can only repeat your error message :) n256 - paste(rep(A,256),collapse=) assign(n256, 1) n257 - paste(rep(A,257),collapse=) assign(n257, 1) Error in assign(n257, 1) : variable names are limited to 256 bytes If a

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Brian Frizzelle
All, I think there may be some misunderstanding about my problem. In my code, which is written as an R function, all of my variable names are short. I get that error when I try to source the function so I can call it. I just do not know why I'm getting the error, especially since I have written

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Erik Iverson
Is the '`' character supposed to be there before the ## Add error bars comment? If that is the problem, let it be a good lessonto use an editor with syntax highlighting. :) Brian Frizzelle wrote: All, I think there may be some misunderstanding about my problem. In my code, which

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Joris Meys
I was about to say the same. loading the code line per line gave the error a few lines after that one. Which explains... Cheers Joris On Wed, May 26, 2010 at 9:27 PM, Erik Iverson er...@ccbr.umn.edu wrote: Is the '`' character supposed to be there before the ## Add error bars comment? If

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Brian Frizzelle
Well, that's embarrassing. Thank you for finding that. -- View this message in context: http://r.789695.n4.nabble.com/error-variable-names-are-limited-to-256-bytes-when-sourcing-code-tp2231800p2232244.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Duncan Murdoch
Brian Frizzelle wrote: I've written a function that takes some input data output from a simulation model and creates some graphs. It's not very complicated code, and it works perfectly fine if I just run the code as is. But I have converted it into a function so we call it externally, and