similar to: is there any method to defer the execution of code in r?

Displaying 20 results from an estimated 7000 matches similar to: "is there any method to defer the execution of code in r?"

2018 May 13
2
is there any method to defer the execution of code in r?
I am puzzled by the use of the term "cross-posted" here... I don't see the OP or their question or any similar words from the question involved the the given link, though that link seems worth bringing it to the OP's attention. But the function given in the question seems to have other problems: A) The download.file function call puts its result in a different place than the
2018 May 13
0
is there any method to defer the execution of code in r?
Hello, This is cross posted from StackOverflow: https://stackoverflow.com/questions/50314015/is-there-any-method-to-defer-the-execution-of-code-in-r Cross posting is discouraged in r-help. Rui Barradas On 5/13/2018 8:59 AM, akshay kulkarni wrote: > dear members, > > I have created the following function to read a csv file from a given URL: > > function(){ >
2018 May 13
0
is there any method to defer the execution of code in r?
Hello, I don't understand. It *is* the same question. Same code, same words. And same 'AKSHAY M KULKARNI' (the OP here) and 'AKshayKulkarni' (SO). Exactly the same. Rui Barradas On 5/13/2018 2:07 PM, Jeff Newmiller wrote: > I am puzzled by the use of the term "cross-posted" here... I don't see the OP or their question or any similar words from the
2018 May 13
3
is there any method to defer the execution of code in r?
Not when I click on that link. On May 13, 2018 7:37:50 AM PDT, Rui Barradas <ruipbarradas at sapo.pt> wrote: >Hello, > >I don't understand. > >It *is* the same question. Same code, same words. And same 'AKSHAY M >KULKARNI' (the OP here) and 'AKshayKulkarni' (SO). > >Exactly the same. > >Rui Barradas > >On 5/13/2018 2:07 PM, Jeff
2023 Apr 12
1
aborting the execution of a script...
This is what I get: > source("~/temp/test.R", echo = TRUE) > print(1) [1] 1 > stop("here") Error in eval(ei, envir) : here I get similar output in every variation I tried. It never prints the 2. On 12/04/2023 8:13 a.m., akshay kulkarni wrote: > Dear Duncan, > ? ? ? ? ? ? ? ? ? ? ? ? ?What if I use source() with echo? I am using > that in RStudio.
2023 Apr 12
1
aborting the execution of a script...
Dear Duncan, What if I use source() with echo? I am using that in RStudio. THanking you, Yours sincerely AKSHAY M KULKARNI ________________________________ From: Duncan Murdoch <murdoch.duncan at gmail.com> Sent: Wednesday, April 12, 2023 5:35 PM To: akshay kulkarni <akshay_e4 at hotmail.com>; R help Mailing list <r-help at r-project.org> Subject: Re:
2023 Mar 19
2
lexical scoping for scripts......
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 <murdoch.duncan at gmail.com> Sent: Monday, March 20, 2023 12:20 AM To: akshay kulkarni <akshay_e4 at hotmail.com>; R
2023 Mar 19
1
lexical scoping for scripts......
Again, the answer is "interactivity does not matter". On March 19, 2023 12:54:28 PM PDT, akshay kulkarni <akshay_e4 at hotmail.com> 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 crontab in Linux. I think you get the
2023 Mar 19
1
lexical scoping for scripts......
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 some other session that may be running in another process. Sorry for the
2023 Apr 12
1
aborting the execution of a script...
On 12/04/2023 7:03 a.m., akshay kulkarni wrote: > Dear members, > I have a script which I source it interactively. I have the following questions: > > > 1. If there is an error in an expression, an error message is printed, but the execution continues till the end of the script. I am sourcing with echo. Is there any way to abort the execution when
2023 Jan 12
4
return value of {....}
Hello Akshay, R is quite inspired by LISP, where this is a common thing. It is not in fact that {...} returned something, rather any expression evalulates to some value, and for a compound statement that is the last evaluated expression. {...} might be seen as similar to LISPs (begin ...). Now this is a very different thing compared to {...} in something like C, even if it looks or behaves
2023 Mar 19
1
lexical scoping for scripts......
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 ________________________________ From: Jeff Newmiller <jdnewmil at dcn.davis.ca.us> Sent: Monday, March
2023 Apr 04
1
on lexical scoping....
No, there are lots of situations where that doesn't make sense. You don't want to have to define local copies of the functions from every package you use, for example. I think the takeaway is to learn how R scoping works, and keep things simple. That's one reason I tend to avoid "tidyverse" packages. There are a lot of really good ideas in those packages, but
2023 Jan 09
3
return value of {....}
Dear Valentin, But why should {....} "return" a value? It could just as well evaluate all the expressions and store the resulting objects in whatever environment the interpreter chooses, and then it would be left to the user to manipulate any object he chooses. Don't you think returning the last, or any value, is redundant? We are living in the 21st century
2017 Dec 15
6
something weird has happened....!!!!!!!!!!
dear Members, Today something weird has happened on my R console. I have attached two screenshots of the same vector in my R console but they differ. Also one of my function returns negative values, even after double checking the code, which should return only positive values.. Whats wrong..? Reinstall R? Thanks for help.... AKSHAY M KULKARNI -------------- next part -------------- A
2023 Mar 19
1
lexical scoping for scripts......
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 "scripts" when you should be thinking of your code in terms of functions. What
2023 Apr 04
1
on lexical scoping....
Dear Duncan, THanks for the reply...! So the takeaway is that define the symbol in the same environment before using it right!? Thanking you, Yours sincerely, AKSHAY M KULKARNI ________________________________ From: Duncan Murdoch <murdoch.duncan at gmail.com> Sent: Tuesday, April 4, 2023 8:21 PM To: akshay kulkarni <akshay_e4 at hotmail.com>; Deepayan Sarkar
2017 Aug 03
1
Strange behaviour to download zip file using R
Hi again, I was trying to download stock market data from below link : https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm Input choice : Select Report: Bhavcopy Date(DD-MM-YYYY): 03-03-2010 If you put manual input as above, then we will get option for manual download of file : cm03MAR2010bhav.csv.zip However I then tried to use R to have some automatic download :
2023 Jan 09
5
return value of {....}
Dear members, I have the following code: > TB <- {x <- 3;y <- 5} > TB [1] 5 It is consistent with the documentation: For {, the result of the last expression evaluated. This has the visibility of the last evaluation. But both x AND y are created, but the "return value" is y. How can this be advantageous for solving practical problems?
2023 Apr 04
6
on lexical scoping....
Dear Members, I have the following code typed at the console prompt: y <- x*10 X has not been defined and the above code throws an object not found error. That is, the global environment does not contain x. Why doesn't it look further in the environment stack, like that of packages? There are thousands of packages that contain the variable named x. Of