[R] Setting .Rprofile for RStudio on a Windows 7 x64bit

William Dunlap wdunlap at tibco.com
Mon Apr 17 17:53:59 CEST 2017


No calls please.  Just show the group what .../etc/Rprofile-site contained.
Bill Dunlap
TIBCO Software
wdunlap tibco.com


On Mon, Apr 17, 2017 at 8:36 AM, BR_email <br at dmstat1.com> wrote:
> Bill:
> I feel you are nailing it for me.
> Can I please call you, but I am getting a little lost, and losing your
> valuable help?
> Bruce
>
>
> Bruce Ratner, Ph.D.
> The Significant Statistician™
> (516) 791-3544
> Statistical Predictive Analtyics -- www.DMSTAT1.com
> Machine-Learning Data Mining and Modeling -- www.GenIQ.net
>
> William Dunlap wrote:
>>
>> I should haved added full.names=TRUE to the dir() call.  I you add
>> that I'd expect that you would see ".../etc/Rprofile.site".  What do
>> you see when you do
>>
>>       writeLines(readLines(".../etc/Rprofile.site")
>>
>> and
>>       source(echo=TRUE, ".../etc/Rprofile.site")
>>
>> (replace the ellipsis by whatever dir(full.names=TRUE,...) showed).
>> Bill Dunlap
>> TIBCO Software
>> wdunlap tibco.com
>>
>>
>> On Mon, Apr 17, 2017 at 8:24 AM, BR_email <br at dmstat1.com> wrote:
>>>
>>> Bill:
>>> Here's what I got:
>>>
>>> dir(c(".", Sys.getenv("HOME"), R.home("etc")), pattern="Rprofile") [1]
>>> "Rprofile.site"
>>>
>>>
>>> Bruce Ratner, Ph.D.
>>> The Significant Statistician™
>>> (516) 791-3544
>>> Statistical Predictive Analtyics -- www.DMSTAT1.com
>>> Machine-Learning Data Mining and Modeling -- www.GenIQ.net
>>>
>>>
>>> William Dunlap wrote:
>>>>
>>>> Use the R command
>>>>     dir(c(".", Sys.getenv("HOME"), R.home("etc")), pattern="Rprofile")
>>>> to see if there are any file names with the unwanted ".txt" and use
>>>> file.rename() to fix them up.
>>>> Bill Dunlap
>>>> TIBCO Software
>>>> wdunlap tibco.com
>>>>
>>>>
>>>> On Mon, Apr 17, 2017 at 8:06 AM, William Dunlap <wdunlap at tibco.com>
>>>> wrote:
>>>>>
>>>>> I believe someone already mentioned it, but notepad makes it hard to
>>>>> save a file without the ".txt" extension to its name.  R does not do
>>>>> anything with .Rprofile.txt, only .Rprofile, so you must figure out a
>>>>> way to work around notepad's mangling of the file name.
>>>>> Bill Dunlap
>>>>> TIBCO Software
>>>>> wdunlap tibco.com
>>>>>
>>>>>
>>>>> On Mon, Apr 17, 2017 at 7:41 AM, Bruce Ratner PhD <br at dmstat1.com>
>>>>> wrote:
>>>>>>
>>>>>> Bert:
>>>>>> I used note pad under Administrator. The code:
>>>>>> options(prompt="R> ")
>>>>>> set.seed(12345)
>>>>>>
>>>>>> Bruce
>>>>>>
>>>>>> ______________
>>>>>> Bruce Ratner PhD
>>>>>> The Significant Statistician™
>>>>>> (516) 791-3544
>>>>>> Statistical Predictive Analytics -- www.DMSTAT1.com
>>>>>> Machine-Learning Data Mining -- www.GenIQ.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On Apr 17, 2017, at 10:30 AM, Bert Gunter <bgunter.4567 at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>> I cannot add to the instructions that you have already been given
>>>>>>> regarding .Rprofile.
>>>>>>>
>>>>>>> But what code did you use in your .Rprofile to set the prompt? The
>>>>>>> posting guide explicitly requests that you provide your code,
>>>>>>> although
>>>>>>> maybe you already did earlier in this extensive thread.
>>>>>>>
>>>>>>> ?options
>>>>>>>
>>>>>>> is how it can be set. Did you do this?
>>>>>>>
>>>>>>> -- Bert
>>>>>>>
>>>>>>> Bert Gunter
>>>>>>>
>>>>>>> "The trouble with having an open mind is that people keep coming
>>>>>>> along
>>>>>>> and sticking things into it."
>>>>>>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>>>>>>
>>>>>>>
>>>>>>>> On Mon, Apr 17, 2017 at 3:06 AM, Bruce Ratner PhD <br at dmstat1.com>
>>>>>>>> wrote:
>>>>>>>> David:
>>>>>>>> When I launch Rstudio the effects of the Rprofile do not show, e.g.,
>>>>>>>> I
>>>>>>>> want the prompt to be "R> " instead of the default "> ". The former
>>>>>>>> doesn't
>>>>>>>> show.
>>>>>>>> Bruce
>>>>>>>>
>>>>>>>> ______________
>>>>>>>> Bruce Ratner PhD
>>>>>>>> The Significant Statistician™
>>>>>>>> (516) 791-3544
>>>>>>>> Statistical Predictive Analytics -- www.DMSTAT1.com
>>>>>>>> Machine-Learning Data Mining -- www.GenIQ.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On Apr 16, 2017, at 7:34 PM, David Winsemius
>>>>>>>>> <dwinsemius at comcast.net>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>> ______________________________________________
>>>>>> R-help at 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.
>>>>
>>>>
>>>>
>>
>>
>



More information about the R-help mailing list