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?

THanking you,
Yours sincerely,
AKSHAY M KULKARNI

________________________________
From: Marc Girondot <marc_...@yahoo.fr>
Sent: Wednesday, December 7, 2022 10:39 PM
To: r-help@r-project.org <r-help@r-project.org>; akshay...@hotmail.com 
<akshay...@hotmail.com>
Subject: Re: [R] setting timezone variable permanently...

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 � 17:47, akshay kulkarni a �crit :
> 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
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to