Re: [R] Is there a way to get R script line number

2017-04-07 Thread MacQueen, Don
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Apr 6, 2017 at 11:59 AM, Brad P <bpsch...@gmail.com> wrote: > Hello, > > Is there a way to get the current line number in an R script? > > As a silly e

Re: [R] Is there a way to get R script line number

2017-04-07 Thread William Michels via R-help
s (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Apr 6, 2017 at 11:59 AM, Brad P <bpsch...@gmail.com> wrote: >> Hello, >> >> Is there a way to get the current line number in an R script? >> >> As a silly example, if

Re: [R] Is there a way to get R script line number

2017-04-06 Thread Bert Gunter
erkeley Breathed in his "Bloom County" comic strip ) On Thu, Apr 6, 2017 at 11:59 AM, Brad P <bpsch...@gmail.com> wrote: > Hello, > > Is there a way to get the current line number in an R script? > > As a silly example, if I have the following script and a function

[R] Is there a way to get R script line number

2017-04-06 Thread Brad P
Hello, Is there a way to get the current line number in an R script? As a silly example, if I have the following script and a function called getLineNumber (suppose one exists!), then the result would be 3. 1 # This is start of script 2 3 print( getLineNumber() ) 4 5 # End of script Thanks