Re: [R] Rprofile.site and automatic installation of missing packages

2023-03-22 Thread PIKAL Petr
for my questions, it is something I never done before but I now need to resolve it in a way which fits to our IT environment. Best regards. Petr -Original Message- From: Duncan Murdoch Sent: Tuesday, March 21, 2023 5:43 PM To: PIKAL Petr ; r-help Subject: Re: [R] Rprofile.site and au

Re: [R] Rprofile.site and automatic installation of missing packages

2023-03-21 Thread Duncan Murdoch
"package:base" Any suggestion where to look? I'd add code to print the values of x and test to confirm that things are proceeding as you expect. I don't know if print() or cat() will work there; you might need to use message(). For attaching packages, you should see ?S

Re: [R] Rprofile.site and automatic installation of missing packages

2023-03-21 Thread PIKAL Petr
ASS) #** test <-(scan("pack.txt", character(), quote = "")) x<- utils::installed.packages() utils::install.packages(test[!test %in% x], repos="https://cloud.r-project.org";) ##** Options are set and working. MASS should be loaded but is not >

Re: [R] Rprofile.site and automatic installation of missing packages

2023-03-21 Thread PIKAL Petr
their .Rprofile to get customised way how to start R. Best regards Petr > -Original Message- > From: Duncan Murdoch > Sent: Tuesday, March 21, 2023 1:55 PM > To: PIKAL Petr ; r-help > Subject: Re: [R] Rprofile.site and automatic installation of missing > packages > &g

Re: [R] Rprofile.site and automatic installation of missing packages

2023-03-21 Thread Duncan Murdoch
?Startup says: "Note that when the site and user profile files are sourced only the base package is loaded, so objects in other packages need to be referred to by e.g. utils::dump.frames or after explicitly loading the package concerned." So you need utils::installed.packages and utils::insta

[R] Rprofile.site and automatic installation of missing packages

2023-03-21 Thread PIKAL Petr
Dear all. I am trying to install missing (not installed) packages during startup of R through code in Rprofile.site but I miserably failed and I am not sure what I am doing wrong. R is installed to C:Program files but it is not writable for the users, therefore I cannot change Rprofile.site

Re: [R] Rprofile.site under Windows 7?

2012-05-21 Thread Gabor Grothendieck
On Sat, May 5, 2012 at 1:18 AM, Spencer Graves wrote: > On 5/4/2012 9:27 PM, Duncan Murdoch wrote: >> >> On 12-05-04 10:33 PM, Joshua Wiley wrote: >>> >>> On Fri, May 4, 2012 at 7:17 PM, Duncan Murdoch >>>  wrote: On 12-05-04 7:40 PM, Spencer Graves wrote: >>> >>> [snip] > >    

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Spencer Graves
On 5/4/2012 9:27 PM, Duncan Murdoch wrote: On 12-05-04 10:33 PM, Joshua Wiley wrote: On Fri, May 4, 2012 at 7:17 PM, Duncan Murdoch wrote: On 12-05-04 7:40 PM, Spencer Graves wrote: [snip] This is almost enough to drive a person to join the "I hate MicroSoft" fan club. I think that

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Duncan Murdoch
On 12-05-04 10:33 PM, Joshua Wiley wrote: On Fri, May 4, 2012 at 7:17 PM, Duncan Murdoch wrote: On 12-05-04 7:40 PM, Spencer Graves wrote: [snip] This is almost enough to drive a person to join the "I hate MicroSoft" fan club. I think that would just confirm my membership in the "I

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Joshua Wiley
On Fri, May 4, 2012 at 7:17 PM, Duncan Murdoch wrote: > On 12-05-04 7:40 PM, Spencer Graves wrote: [snip] >>        This is almost enough to drive a person to join the "I hate >> MicroSoft" fan club. > > I think that would just confirm my membership in the "I hate Emacs" club. I don't see how th

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Duncan Murdoch
On 12-05-04 7:40 PM, Spencer Graves wrote: On 5/4/2012 5:41 AM, Duncan Murdoch wrote: On 12-05-04 12:41 AM, Spencer Graves wrote: On 5/3/2012 9:28 PM, Joshua Wiley wrote: How are you using R? Any special front ends that might be causing this? Can you try it in unsuffered consequences?

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Spencer Graves
On 5/4/2012 5:41 AM, Duncan Murdoch wrote: On 12-05-04 12:41 AM, Spencer Graves wrote: On 5/3/2012 9:28 PM, Joshua Wiley wrote: How are you using R? Any special front ends that might be causing this? Can you try it in unsuffered consequences? I'm running R 1.15.0; sessionInfo() ap

Re: [R] Rprofile.site under Windows 7?

2012-05-04 Thread Duncan Murdoch
On 12-05-04 12:41 AM, Spencer Graves wrote: On 5/3/2012 9:28 PM, Joshua Wiley wrote: How are you using R? Any special front ends that might be causing this? Can you try it in unsuffered consequences? I'm running R 1.15.0; sessionInfo() appears below. I get this from Rgui i386 and

Re: [R] Rprofile.site under Windows 7?

2012-05-03 Thread Spencer Graves
On 5/3/2012 9:28 PM, Joshua Wiley wrote: How are you using R? Any special front ends that might be causing this? Can you try it in unsuffered consequences? I'm running R 1.15.0; sessionInfo() appears below. I get this from Rgui i386 and x64 plus when calling Rterm x64 via GNU Emacs

Re: [R] Rprofile.site under Windows 7?

2012-05-03 Thread Joshua Wiley
How are you using R? Any special front ends that might be causing this? Can you try it in unsuffered consequences? Josh On Thu, May 3, 2012 at 9:07 PM, Spencer Graves wrote: > Hello All: > > >          I'm still unable to get Rprofile.site to set, e.g., > options(max.print=222), as I did with

[R] Rprofile.site under Windows 7?

2012-05-03 Thread Spencer Graves
Hello All: I'm still unable to get Rprofile.site to set, e.g., options(max.print=222), as I did with previous versions of R. I just found similar questions posed by Trevor Miles and Ross Bowden with replies by Uwe Ligges and Duncan Murdoch. In addition to the things I tried docu

[R] Rprofile.site in R 2.15.0 on Windows?

2012-05-02 Thread Spencer Graves
Hello: I have so far failed to get Rprofile.site to be processed in R 2.15.0 under Windows 7 as I remember having done it in previous version of R. For example, I've included "options(max.print=222)" in "R_HOME/etc/Rprofile.site" (with and without the environmental variable R_HOME set

Re: [R] Rprofile.site on Windows

2012-04-25 Thread Trevor Miles
" and R_HOME = "C:/PROGRA~1/R/R-214~1.1". Should I set R_ENVIRON in the Windows Registry? > Date: Tue, 24 Apr 2012 22:50:21 -0400 > From: murdoch.dun...@gmail.com > To: trevor.mi...@live.ca > CC: r-help@r-project.org > Subject: Re: [R] Rprofile.site on Windows >

Re: [R] Rprofile.site on Windows

2012-04-25 Thread Duncan Murdoch
le, other than defining where to find environment variables. You want to look at R_PROFILE, and possibly set it in your Renviron.site file. Duncan Murdoch > Date: Tue, 24 Apr 2012 22:50:21 -0400 > From: murdoch.dun...@gmail.com > To: trevor.mi...@live.ca > CC: r-help@r-projec

Re: [R] Rprofile.site on Windows

2012-04-24 Thread Duncan Murdoch
On 12-04-24 10:43 PM, Duncan Murdoch wrote: On 12-04-24 4:13 PM, Trevor Miles wrote: Hi All I am struggling to get R to read the Rprofile.site file from the R_HOME/etc folder. I know it isn't working because I change the prompt in the Rprofile.site file. In addition, when I run "source('R_HO

Re: [R] Rprofile.site on Windows

2012-04-24 Thread Duncan Murdoch
On 12-04-24 4:13 PM, Trevor Miles wrote: Hi All I am struggling to get R to read the Rprofile.site file from the R_HOME/etc folder. I know it isn't working because I change the prompt in the Rprofile.site file. In addition, when I run "source('R_HOME'/etc/Rprofile.site") from the prompt, the

[R] Rprofile.site on Windows

2012-04-24 Thread Trevor Miles
Hi All I am struggling to get R to read the Rprofile.site file from the R_HOME/etc folder. I know it isn't working because I change the prompt in the Rprofile.site file. In addition, when I run "source('R_HOME'/etc/Rprofile.site") from the prompt, the prompt gets changed and other environment

Re: [R] Rprofile.site?

2012-04-13 Thread Uwe Ligges
On 13.04.2012 06:25, Spencer Graves wrote: Hello: I've been using "Rprofile.site" for several years to set the repos environment variable as follows: options(repos=c(CRAN='http://cran.cnr.berkeley.edu', CRANextra='http://www.stats.ox.ac.uk/pub/RWin') ) However, R 2.15.0 is not recognizing

[R] Rprofile.site?

2012-04-12 Thread Spencer Graves
Hello: I've been using "Rprofile.site" for several years to set the repos environment variable as follows: options(repos=c(CRAN='http://cran.cnr.berkeley.edu', CRANextra='http://www.stats.ox.ac.uk/pub/RWin') ) However, R 2.15.0 is not recognizing this. Instead,

Re: [R] Rprofile.site

2011-11-27 Thread Yen, Steven T
optim. Thanks. again. From: Spencer Graves [spencer.gra...@structuremonitoring.com] Sent: Sunday, November 27, 2011 10:42 PM To: Yen, Steven T Cc: r-help@r-project.org Subject: Re: [R] Rprofile.site or put them in an R package with some appropriate name like "YenMisc",

Re: [R] Rprofile.site

2011-11-27 Thread Spencer Graves
or put them in an R package with some appropriate name like "YenMisc", then include "library(YenMisc)" in "Rprofile.site". This has the added advantage that you can easily share YenMisc with others. Spencer On 11/27/2011 6:42 PM, Florent D. wrote: source("c:\path\... ") On Sun, Nov 27, 201

Re: [R] Rprofile.site

2011-11-27 Thread Florent D.
source("c:\path\... ") On Sun, Nov 27, 2011 at 9:28 PM, Yen, Steven T wrote: > Dear All > > I inserted a frequently used function (subroutine) right into my > Rprofile.site which allows me to run it each time-works great. However, > this approach is obviously suitable for a short function or a s

[R] Rprofile.site

2011-11-27 Thread Yen, Steven T
Dear All I inserted a frequently used function (subroutine) right into my Rprofile.site which allows me to run it each time-works great. However, this approach is obviously suitable for a short function or a small number of functions. Instead of inserting the lines in Rprofile.site, is there a

Re: [R] rprofile.site

2011-01-11 Thread PtitBleu
Hello Julian, I'm not sure my answer will be very helpful to you but it seems that Tinn-R looks for Rprofile.site at the old place (R/bin/etc). With the new R configuration, this file is in now R/bin. Maybe you can try to copy the Rprofil.site file to the place expected by Tinn-R. I also found

[R] rprofile.site

2011-01-07 Thread Julian Pritsch
Hi all, i just installed R 2.12.1 and Tinn-R 2.3.7.1. My OS is Windows 7 32bit. Here is my question: Do I have to execute the rprofile.site manually every time I start a R/Tinn-R session? Because it seems that way. Here is the error code I receive after sending "selection(echo=TRUE): source(.t

Re: [R] Rprofile.site not executed?

2008-01-16 Thread Duncan Murdoch
On 1/16/2008 8:59 AM, Fernando Saldanha wrote: > It seems that my Rprofile.site file is not executed when I start R. To > test this I included the following code in that file: > > .First <- function(){ > cat("\nWelcome at", date(), "\n") > flush.console() > } > > When I start R the message abo

Re: [R] Rprofile.site not executed?

2008-01-16 Thread marciarr
I have exactly the same problem, just made the same question to the list 2 hours after you (your message was still not posted). Hope someone answers us! Fernando Saldanha wrote: > > It seems that my Rprofile.site file is not executed when I start R. To > test this I included the following code

Re: [R] Rprofile.site not executed?

2008-01-16 Thread john seers (IFR)
.RProfile.site?) 3. Is your Rprofile.site protected against read? Or the etc directory? Regards JS --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Saldanha Sent: 16 January 2008 14:00 To: R-help@r-project.org Subject: [R

[R] Rprofile.site not executed?

2008-01-16 Thread Fernando Saldanha
It seems that my Rprofile.site file is not executed when I start R. To test this I included the following code in that file: .First <- function(){ cat("\nWelcome at", date(), "\n") flush.console() } When I start R the message above is not displayed. I am running R 2.6.1 (rgui.exe) under Vista