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

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

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

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

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

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

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

Re: [R-es] ver el código de randomForest

2023-03-19 Thread Manuel Mendoza
Gracias Marcelino, eso era exactamente lo que necesitaba saber, cómo se accede a los códigos. Tomo nota de todo lo que me dices. Gracias también a griera. Vi que en la carpeta R están todos los códigos. Cuando pueda les echaré un ojo. Saludos, Manuel El dom, 19 mar 2023 a las 11:33, Marcelino de

Re: [R-es] ver el código de randomForest

2023-03-19 Thread Marcelino de la Cruz Rot
Buenos días: Otra opción es escribir directamente el nombre de la función en la consola de R: > randomForest function (x, ...) UseMethod("randomForest") En este caso, la función randomForest() llama a UseMethod() para seleccionar el método adecuado. Podemos ver los métodos para

Re: [R-es] ver el código de randomForest

2023-03-19 Thread griera
Hola: No se muy bien si es esto lo que preguntas, pero el código de todos los scripts está en el fichero: https://cran.r-project.org/src/contrib/randomForest_4.7-1.1.tar.gz Saludos. On Sun, 19 Mar 2023 04:35:44 +0100 Manuel Mendoza wrote: > Buenos días, ¿cómo podría ver el código con el que