[R-SIG-Mac] .First() function not being executed on R.app startup
Simon Urbanek
simon.urbanek at r-project.org
Wed Nov 28 02:45:25 CET 2007
Steven,
can you be more specific, please? I cannot reproduce your
problem, .First works for me just fine:
R version 2.6.1 (2007-11-26)
Copyright (C) 2007 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
.First was called
> .First
function() cat(".First was called\n")
Cheers,
Simon
On Nov 27, 2007, at 6:00 PM, Steven McKinney wrote:
> Hi all,
>
> I've set up a .First function to run help.start()
> but when I invoke R.app the .First function is not
> apparently executed. I've checked preferences and
> documentation but can not find any indication that
> .First() should not be executed.
>
> Is this a bug in R.app, or have I missed something
> about how to get .First() to be invoked when
> I run R.app? I include session information below.
> When I invoke R from a terminal shell, help.start()
> is executed and a browser window does pop up, but
> not when I invoke R from R.app.
>
> Any information appreciated.
>
> Best
>
> Steve McKinney
>
>
> R version 2.6.1 (2007-11-26)
> Copyright (C) 2007 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> [Workspace restored from /Users/stevenmckinney/.RData]
>
>> ls(all=TRUE)
> [1] ".First" ".required"
>> .First
> function(){utils::help.start()}
>> sessionInfo()
> R version 2.6.1 (2007-11-26)
> powerpc-apple-darwin8.10.1
>
> locale:
> en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
More information about the R-SIG-Mac
mailing list