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

David Winsemius dwinsemius at comcast.net
Mon Apr 17 01:34:18 CEST 2017


> On Apr 16, 2017, at 3:43 PM, BR_email <br at dmstat1.com> wrote:
> 
> Peter:
> Thanks for reply and suggestion.
> Sorry, I am not sure how to assess.
> The doc is too technical for me to understand.
> I found multiple instructions online and in R and RStudio books.
> I'm doing what it says, but no success.

What is "it" and what is "lack of success"?

> The instructions are simple as a-b-c, but some setting within the Windows system must be the culprit.

Although the RStudio page immediately below was done with a Mac, I suspect there are similar selection panels and dialogs on the Windows version of RStudio.

https://support.rstudio.com/hc/en-us/articles/200549016#general

When I look at the Windows installation advice I see near the top: "When installing on a 64-bit version of Windows the options will include 32- or 64-bit versions of R (and the default is to install both)." So is it possible that RStudio is looking at a different version of R than you believe it should be, perhaps at the 32 bit R versus the 64 bit one? The result at the beginning of this thread makes me think you got the 32-bit one connected to RStudio.

And I say again: I believe problems in configuring RStudio are off-topic for Rhelp and you should have been searching or posting question either to the RStudio support or StackOverflow. Looking at the responses to the queries above and the ones found below, it appears to me that there are RStudio-specific issues that go beyond what is in the `help(Startup)` or equivalent `help(.Rprofile)` page.  I gave an instance of an SO search upthread and I offer another SO search:

http://stackoverflow.com/search?tab=votes&q=%5brstudio%5d%20environment%20variables%20windows

I thought that this one below had potentially useful information, but I am not a Windows user (and you have not shown an inclination in offering a complete description of your efforts at following that advice. At any rate it would have been more appropriate to respond to the SO answers that were ineffective or to post a question there with full description of your efforts and content of your .Rprofile file and your current environment variable settings.)

http://stackoverflow.com/search?tab=votes&q=%5brstudio%5d%20rprofile%20windows

-- 
David

> 
> Regards,
> 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
> 
> peter dalgaard wrote:
>> Um, tried help(.Rprofile) lately?
>> 
>> -pd
>> 
>>> On 17 Apr 2017, at 00:08 , Rolf Turner <r.turner at auckland.ac.nz> wrote:
>>> 
>>> 
>>> On 17/04/17 08:46, John C Frain wrote:
>>> 
>>>> Bruce
>>>> 
>>>> The official documentation for these startup files can be obtained with
>>>> the command
>>>> 
>>>> Help(Startup)
>>> 
>>> Minor point of order, Mr. Chairman.  That should be:
>>> 
>>>    help(Startup)
>>> 
>>> There is (as far as I know) no such function as "Help()".  It is important to remember that R is case sensitive.
>>> 
>>> Another point that is worthy of thought is "How in God's name would any beginner know or find out about the usage help(Startup)?"  Unless they were explicitly told about it, in the manner which you just demonstrated.  The usage gets a mention in "An Introduction to R" --- but I had to search for it.
>>> 
>>> To me the word "startup" is not terribly intuitive.  I would tend to search for "starting" rather than "startup", I think, but I'm not sure what the average beginner would search for.  A search of "An Introduction to R" for "starting" gets seven or eight hits, one of which is relevant.  So it all takes patience and persistence.
>>> 
>>> Also note that "An Introduction to R" mostly uses the word "startup" (lower case "s") and only uses "Startup" twice.  Note also that
>>> 
>>>    help(startup)
>>> 
>>> fails.  You have to get that initial "S" right.
>>> 
>>> This isn't a criticism of the documentation.  I'm just pointing out that there are problems, mostly insoluble.  Until some clever Johnny gets on with developing that mind_read() function referred to in fortune(182).
>>> 
>>> cheers,
>>> 
>>> Rolf Turner
>>> 
>>> -- 
>>> Technical Editor ANZJS
>>> Department of Statistics
>>> University of Auckland
>>> Phone: +64-9-373-7599 ext. 88276
>>> 
>>> ______________________________________________
>>> 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.
> 
> ______________________________________________
> 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.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list