Re: [R] Preexisting Work on Data- and Control-Flow Analysis

2022-12-07 Thread Richard O'Keefe
You should probably look at the compiler. One issue with data and control flow analysis in R is that f <- function (x, y) x + y f(ping, pong) may invoke an S3 (see ?S3groupGeneric, Ops) or S4 (see ?Arith) method, which might not have existed when f was analysed. Indeed, f <- function (x, y

Re: [R] setting timezone variable permanently...

2022-12-07 Thread akshay kulkarni
Dear Jeff, thanks a lot Thanking you, Yours sincerely, AKSHAY M KULKARNI From: Jeff Newmiller Sent: Wednesday, December 7, 2022 11:03 PM To: akshay kulkarni ; r-help@r-project.org Subject: Re: [R] setting timezone variable permanently...

Re: [R] setting timezone variable permanently...

2022-12-07 Thread Jeff Newmiller
As I said, the tz is linked to your data, not where you OR your compute server are, so setting TZ in your R code or specifying it as the tz argument when you convert it are the best options. If you choose to use your OS to set it that is up to you... but your code should not depend on that sett

Re: [R] setting timezone variable permanently...

2022-12-07 Thread akshay kulkarni
dear Jeff, THanks for your reply. Would you not recommend this solution too : https://stackoverflow.com/questions/49738564/r-set-environment-variable-permanently ? THanking you, Yours sincerely, AKSHAY M KULKARNI From: Jeff Newmiller Sent: We

Re: [R] setting timezone variable permanently...

2022-12-07 Thread Jeff Newmiller
Technically this is a question regarding your operating system, since environment variables are propagated by the OS creation of processes and different OSes include different mechanisms for configuring them. However, for practical purposes in R you can just put that statement into your .Rprofi

Re: [R] setting timezone variable permanently...

2022-12-07 Thread akshay kulkarni
Dear Marc, Thanks for the reply. However, the use of usethis package is very handy here: https://stackoverflow.com/questions/49738564/r-set-environment-variable-permanently. How do you compare your solution with that of using usethis package? Which is more effective? THank

Re: [R] setting timezone variable permanently...

2022-12-07 Thread Marc Girondot via R-help
You can create a file .Rprofile in your home directory with this command. Each time you will open R, it will run this command. https://support.posit.co/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf Marc Le 07/12/2022 à

[R] setting timezone variable permanently...

2022-12-07 Thread akshay kulkarni
Dear members, I am setting the Time zone environment variable by this code: > Sys.setenv(TZ = "Asia/Kolkata") But I have to run it every time I open a new R session. How do I set it permanently? Thanking you, Yours sincerely, AKSHAY M KULKARNI [[alternativ

Re: [R] if documentation

2022-12-07 Thread PIKAL Petr
Hallo Martin I understand. Anyway, it would not do any harm to add something like x <- 11 if(x < 0) {print("weird")} else if(x >= 0 & x <= 9) { print("too low")} else if (x > 9 & x <= 10) { print("just enough")} else { print("more than expected")} to the help page for if. Regards Petr > -O

Re: [R] if documentation

2022-12-07 Thread Martin Maechler
> PIKAL Petr > on Wed, 7 Dec 2022 07:04:38 + writes: > Hallo all Not sure if it is appropriate place but as I am > not involved in r-devel list I post here. > Documentation for Control (if, for, while, .) is missing > "if else" command. Although it can be find