Re: [R] lexical scoping for scripts......

2023-03-19 Thread akshay kulkarni
Dear Jeff, Thanks a lot... Thanking you, Yours sincerely, Akshay m kulkarni From: Jeff Newmiller Sent: Monday, March 20, 2023 1:47 AM To: akshay kulkarni ; r-help@r-project.org ; Duncan Murdoch Subject: Re: [R] lexical scoping for scripts.. Again, the answe

Re: [R] lexical scoping for scripts......

2023-03-19 Thread Jeff Newmiller
Again, the answer is "interactivity does not matter". On March 19, 2023 12:54:28 PM PDT, akshay kulkarni wrote: >Dear Jeff, > I will not be running R command in the shell prompt. So there > is no banner, no > prompt. Just running "myscript.R" from the shell prompt. > or from cr

Re: [R] lexical scoping for scripts......

2023-03-19 Thread akshay kulkarni
Dear Jeff, I will not be running R command in the shell prompt. So there is no banner, no > prompt. Just running "myscript.R" from the shell prompt. or from crontab in Linux. I think you get the context. thanking you, yours sincerely AKSHAY M KULKARNI __

Re: [R] lexical scoping for scripts......

2023-03-19 Thread akshay kulkarni
dear Duncun, got the pointthanks a lot..! THanking you, Yours sincerely, AKSHAY M KULKARNI From: Duncan Murdoch Sent: Monday, March 20, 2023 1:12 AM To: akshay kulkarni ; R help Mailing list Subject: Re: [R] lexical scoping for scrip

Re: [R] lexical scoping for scripts......

2023-03-19 Thread Duncan Murdoch
On 19/03/2023 2:55 p.m., akshay kulkarni wrote: Dear Duncun,                          What if there is no interactive "session" running? I will be running my scripts automatically from crontab in Linux. I was talking about the session that is created for the duration of the BATCH run, not so

Re: [R] lexical scoping for scripts......

2023-03-19 Thread Jeff Newmiller
What do _you_ mean when you use the term "interactive"? Because R distinguishes between executing code in a function and executing code from the global environment, but it does not care whether a person is doing the typing or not. I get the feeling that you think of your R code in terms of "scri

Re: [R] lexical scoping for scripts......

2023-03-19 Thread akshay kulkarni
Dear Duncun, What if there is no interactive "session" running? I will be running my scripts automatically from crontab in Linux. THanking you, Yours sincerely, AKSHAY M KULKARNI From: Duncan Murdoch Sent: Monday, March 20, 2023 12:20 AM

Re: [R] lexical scoping for scripts......

2023-03-19 Thread Duncan Murdoch
On 19/03/2023 2:33 p.m., akshay kulkarni wrote: Dear Duncun,                          thanks for the reply So when I run a script in the system command line by R CMD BATCH, the objects created in the script cannot be stored in the workspace ,right? If yes, how to save them? Moreover, the

Re: [R] lexical scoping for scripts......

2023-03-19 Thread akshay kulkarni
Dear Duncun, thanks for the reply So when I run a script in the system command line by R CMD BATCH, the objects created in the script cannot be stored in the workspace ,right? If yes, how to save them? Moreover, the only way to save the objects CREATED from the scrip