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
David Winsemius wrote:
>> On Apr 15, 2017, at 12:14 PM, BR_email <b...@dmstat1.com> wrote:
>>
>> Bill:
>> Thanks for reply.
>> Sorry, I do not understand it.
>> For example, where do I put "file.path(getwd(), ".Rprofile")" ?
> This is not the correct venue for questions about RStudio setup. Instead this questions should go to:
>
> https://support.rstudio.com/hc/en-us
>
______________________________________________
Regarding an apology to Boris. No. He is a condescending person.
On the three requests for help, which I made since starting with R, he
tells me to read the manuals, blogs, etc.,
while persons like you offer help. That is not strange?
My three questions Boris replies with nothing, yet others feel my
request is genuine and offer assistance.
I spend hours and hours reading the manuals, blogs, and purchasing and
reading multiple books on R and RStudio.
After that, when I am stuck, I go to the r-help.
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
John C Frain wrote:
> If you have your Rprofile.site file in the default place you will need
> to start whatever editor you are using in administrator mode to save
> your changes. At least that is so on my PC with windows 10 with R
> installed in the default directory. I use notepad++ in administrator
> mode. I presume that you could do the same with rstudio.
>
> If you think that answers are short or to the point remember that
> someone is giving of his time to help you. I think that you owe
> someone an apology.
>
> John C Frain
> 3 Aranleigh Park
> Rathfarnham
> Dublin 14
> Ireland
> www.tcd.ie/Economics/staff/frainj/home.html
> <http://www.tcd.ie/Economics/staff/frainj/home.html>
> mailto:fra...@tcd.ie <mailto:fra...@tcd.ie>
> mailto:fra...@gmail.com <mailto:fra...@gmail.com>
>
> On 15 April 2017 at 23:19, Henrik Bengtsson
> <boris....@utoronto.ca <mailto:boris....@utoronto.ca>> wrote:
> >>
> >> As with R, do with RStudio: Read The Beautiful Manual, and
> peruse The Google. For example, searching Google with the two
> (admittedly hard to guess) cryptograms:
> >> "RStudio Rprofile"
> >>
> >> will present more than a dozen most enlightening links to
> fulfil your desire.
> >>
> >> Perhaps the following link works better for you though:
> >> https://www.bing.com/search?q=rstudio+rprofile
> <https://www.bing.com/search?q=rstudio+rprofile>
> >
> > Another promising search strategy would be SO with "[rstudio]"
> in the tags:
> >
> > http://stackoverflow.com/search?q=%5Brstudio%5D+rprofile+windows
> <http://stackoverflow.com/search?q=%5Brstudio%5D+rprofile+windows>
> >
> > --
> > david.
> >>
> >> B.
> >>
> >>
> >>> On Apr 15, 2017, at 3:14 PM, BR_email <b...@dmstat1.com
> <mailto:b...@dmstat1.com>> wrote:
> >>>
> >>> Bill:
> >>> Thanks for reply.
> >>> Sorry, I do not understand it.
> >>> For example, where do I put "file.path(getwd(), ".Rprofile")" ?
> >>>
> >>> Bruce
> >>>
> >>>
> >>> William Dunlap wrote:
> >>>> I think the site-specific R profile should be, using R syntax
> >>>> file.path(R.home("etc"), "Rprofile.site") # no dot before
> the capital R
> >>>> The personal R profile will be
> >>>> file.path(Sys.getenv("HOME"), ".Rprofile") # there is a dot
> before capital R
> >>>> but if a local R profile,
> >>>> file.path(getwd(), ".Rprofile") # there is a dot before
> capital R
> >>>> exists it will be used and the one in HOME will not be.
> (getwd() should
> >>>> be the startup directory.)
> >>>>
> >>>>
> >>>> Bill Dunlap
> >>>> TIBCO Software
> >>>> wdunlap tibco.com <http://tibco.com>
> >>>>
> >>>>
> >>>> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <b...@dmstat1.com
> <mailto:b...@dmstat1.com>> wrote:
> >>>>> Hi R-helpers:
> >>>>> Can you offer assistance in my getting .Rprofile and
> .Rprofile.site to run
> >>>>> in RStudio?
> >>>>> When I start RStudio nothing happens.
> >>>>> I have put .Rprofile in [1] and [2], and .Rprofile.site in [2].
> >>>>>
> >>>>> Below, the info I believe you need to know.
> >>>>> Thanks, in advance, for any help.
> >>>>> Bruce
> >>>>>
> >>>>> The .Rprofile and .Rprofile.site are R-type files, which
> contain the two
> >>>>> lines below.
> >>>>> Also, I tried the profile files as text files.
> >>>>> options(prompt="R> ")
> >>>>> set.seed(12345)
> >>>>>
> >>>>>> Sys.getenv("HOME") [1] "C:/Users/BruceRatner/Documents"
> >>>>>> Sys.getenv("R_HOME") [2] "C:/PROGRA~1/R/R-33~1.3"
> >>>>>
> >>>>>
> >>>>> --
> >>>>>
> >>>>> ______________________________________________
> >>>>> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing
> list -- To UNSUBSCRIBE and more, see
> >>>>> https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> >>>>> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> >>>>> and provide commented, minimal, self-contained, reproducible
> code.
> >>>>
> >>>>
> >>>
> >>> ______________________________________________
> >>> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing
> list -- To UNSUBSCRIBE and more, see
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> >>> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> >>> and provide commented, minimal, self-contained, reproducible code.
> >>
> >> ______________________________________________
> >> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing list
> -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> >> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> > David Winsemius
> > Alameda, CA, USA
> >
> > ______________________________________________
> > R-h...@r-project.org <mailto:R-h...@r-project.org> mailing list
> -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> > and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing list --
> To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
I hate to repeat, but on the only three questions I ever submitted to R-help , since I started with R, I received several technical suggestions of what to do.
Yet, Boris replied all three times with "read the manuals, go to websites, and stop spamming."
I'm sorry, but Boris' implies that I haven't done the basics and I want someone to just give me the answer to my question.
Those who reply with positive suggestions vs. Boris who tells me that he's not going to do my due diligence - indicates Boris' condescending attitude. I don't know why he responds to my last two questions, given I politely informed him that I have done the basic reading, etc?
Regardless, you are professional, helpful, and very proper.
Unfortunately, I don't think I will use R-help, in fear of Boris.
Bruce
______________
Bruce Ratner PhD
The Significant Statistician™
Statistical Predictive Analytics -- www.DMSTAT1.com
Machine-Learning Data Mining -- www.GenIQ.net
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
For the actual question, I think the best approach would be to follow up on Bill Dunlap's suggestion. The mails from Jeff and Henrik pretty much tell you step by step what to try to find out which files on yours system are being checked in order to find startup code.
-pd
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd....@cbs.dk Priv: PDa...@gmail.com
______________________________________________
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
David Winsemius
Alameda, CA, USA
______________________________________________
______________
Bruce Ratner PhD
The Significant Statistician™
(516) 791-3544
Statistical Predictive Analytics -- www.DMSTAT1.com
Machine-Learning Data Mining -- www.GenIQ.net
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 )
Bruce
______________
Bruce Ratner PhD
The Significant Statistician™
(516) 791-3544
Statistical Predictive Analytics -- www.DMSTAT1.com
Machine-Learning Data Mining -- www.GenIQ.net
Henrik
[[alternative HTML version deleted]]
Bruce Ratner, Ph.D.
Henrik Bengtsson wrote:
> Did you try any of the troubleshooting I suggested? If you do that,
> I'm 99.99% certain it'll help you to resolve this.
>
> Henrik
>
>
> On Apr 17, 2017 03:07, "Bruce Ratner PhD" <b...@dmstat1.com
> <mailto:b...@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 <tel:%28516%29%20791-3544>
> Statistical Predictive Analytics -- www.DMSTAT1.com
> <http://www.DMSTAT1.com>
> Machine-Learning Data Mining -- www.GenIQ.net <http://www.GenIQ.net>
>
>
>
> > On Apr 16, 2017, at 7:34 PM, David Winsemius
> <dwins...@comcast.net <mailto:dwins...@comcast.net>> wrote:
> >
> >
> >> On Apr 16, 2017, at 3:43 PM, BR_email <b...@dmstat1.com
> <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
> <http://stackoverflow.com/search?tab=votes&q=%5brstudio%5d%20rprofile%20windows>
> >
> > --
> > David
> >
> >>
> >> Regards,
> >> Bruce
> >>
> >> Bruce Ratner, Ph.D.
> >> The Significant Statistician™
> >> (516) 791-3544 <tel:%28516%29%20791-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
> <tel:%2B64-9-373-7599%20ext.%2088276>
> >>>>
> >>>> ______________________________________________
> >>>> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing
> list -- To UNSUBSCRIBE and more, see
> >>>> https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> >>>> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> >>>> and provide commented, minimal, self-contained, reproducible
> code.
> >>
> >> ______________________________________________
> >> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing list
> -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> <https://stat.ethz.ch/mailman/listinfo/r-help>
> >> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> <http://www.R-project.org/posting-guide.html>
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> > David Winsemius
> > Alameda, CA, USA
> >
> >
>
> ______________________________________________
> R-h...@r-project.org <mailto:R-h...@r-project.org> mailing list --
> To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
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
Jeff Newmiller wrote:
> Doing anything as Administrator means you are probably already in file permissions hell. R works great if you avoid Administrator mode entirely... using it raises the complexity of every step you take drastically.
______________________________________________
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
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
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
>writeLines(readLines("C:/Users/BruceRatner/Documents/.Rprofile.site")) options(prompt="R> ")
set.seed(12345)
rm(list=ls())
>
Yet, still not affecting the launch, as "R>" is not there.
Any suggestions, please. "So close, yet far away, ... " - Carly Simon
>source(echo=TRUE, ""C:/Users/BruceRatner/Documents/.Rprofile.site")
Error: unexpected symbol in "source(echo=TRUE, ""C"
>
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
You have a double quote sign ("") preceding C:/.
Make it a single double quote so that you get "C:/...."
Berend
>source(echo=TRUE, "C:/Users/BruceRatner/Documents/.Rprofile.site")
> options(prompt="R> ")
> set.seed(12345)
> rm(list=ls())
R>
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
Berend Hasselman wrote:
> source(echo=TRUE, ""C:/Users/BruceRatner/Documents/.Rprofile.site")
I also recommend putting the arguments in the order given in ?source unless you name every single argument.
--
Sent from my phone. Please excuse my brevity.
According to the gospel of St.Henrik, that filename is wrong, and possibly the directory too.
So try his suggestions. What is the output (show us!) of
normalizePath("./.Rprofile")
normalizePath("~/.Rprofile")
Assuming that the former is
"C:/Users/BruceRatner/Documents/.Rprofile"
you could try renaming the .Rprofile.site file to that. If need be, use file.rename, as in
file.rename(from="C:/Users/BruceRatner/Documents/.Rprofile.site", to="C:/Users/BruceRatner/Documents/.Rprofile")
(and restart, obviously).
[I wouldn't set the seed in a .Rprofile file, nor would I use rm() there, but that is a different kettle of fish.]
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd....@cbs.dk Priv: PDa...@gmail.com
______________________________________________
I never look down at anyone, except to help him/her up.
With gratitude,
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
______________________________________________
You guys drilled down, and hit solid gold for me,
which lead to my understanding the issue, at least as I see it.
Pure GOLD Medal team work.
Again, I truly thank you.
Bruce
The "how to" write the file was the real issue, not clearly covered in any material I could find or purchase.
I read that any notepad-type app can be used to create the .Rprofile file:
1. with or without a txt/R extension, and/or
2. with or without Administrator permission.
Not being a professional programmer/developer, I did not know about text editors that can create files with no extension, which was the problem at hand.
After many back and forth drilling down by R-helpers with trouble shooting queries, it became clear that I was not using a developer's text editor.
Solution: I found an editor online, EditPad Pro 7 (for Windows), with which I created my .Rprofile file.
The result was complete success, and gratitude to all R-helpers who stuck by me,
understanding I am new to R, with non professional programming skills. As a statistician (or if you prefer data scientist) for twenty plus years, clearly I must know how to program, but not at the pro level or pro understanding.
John, I hope this write up is satisfactory, if not please let let me know, as I will rewrite until you are happy with it.
It is a nice surprise to hear your wanting to archive the problem-solution, which almost did me in, and which created ill feelings among several R-helpers towards me.
Regards,
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 18, 2017, at 9:52 AM, Sparks, John James <jsp...@uic.edu> wrote:
>
> Bruce,
>
> Do you think that you could post the final solution to the problem? That
> way it would be stored with this thread and the next person who has the
> same problem would be able to locate the FINAL solution.
>
> --JJS
>
>
>> On Mon, April 17, 2017 12:47 pm, BR_email wrote:
>> TO _ALL_:
>> THANK YOU. THANK YOU. THANK YOU.
>> After hours, and hours, and hours, and ... , and hours: Success.
>> To all who helped, thanks.
>> My quest was minor, but major for me, as I learn from the path of one,
>> whether big or small begets another.
>>
>> I never look down at anyone, except to help him/her up.
>>
>> With gratitude,
>> 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:
>>>> On 17 Apr 2017, at 19:01 , BR_email <b...@dmstat1.com> wrote:
>>>>
>>>> Berend: Something looks good, but RStudio still Rprofile still doees
>>>> not affect the launch.
>>>>
>>>>> source(echo=TRUE, "C:/Users/BruceRatner/Documents/.Rprofile.site")
>>>>> options(prompt="R> ")
>>>>> set.seed(12345)
>>>>> rm(list=ls())
>>>> R>
>>>>
>>>>
>>>> Bruce Ratner, Ph.D.
>>>> The Significant Statistician™
Bruce, what I think would have helped helping you here early on is if
you had given a bit more details on what you did / tried. There was a
lot of "does not work" early on, which gives little clues. It wasn't
clear where you saved the files. Maybe you weren't sure yourself, but
even knowing so would have helped help you. It was also not clear how
much experience you had with R, which caused confusion - knowing "new
to R, with non professional programming skills" would probably have
cut some corners. As a helper, here and on other forums, it's often
hard to guess this and to provide a proper reply is then hard - like
trying to give a scientific presentation when you don't know who's in
the audience. This happens all the time and most people quickly picks
up what the expectations are and then get a smoother ride going
forward.
/Henrik
PS. With the risk of adding confusion, unless you already do so, you
should focus on only using/editing your
C:/Users/BruceRatner/Documents/.Rprofile (also referred to as
~/.Rprofile) file. That one does not require any Administrative
rights to edit and has the advantage of working also when you update R
later. The C:/PROGRA~1/R/R-33~1.3/etc/.Rprofile.site file requires
Admin to edit and will have to be recreated/reedited whenever you
update R (e.g. R 3.4.0 will install in a different directory). A
regular R user should never have to edit the latter. It's mostly used
for system admins who wish to set common startup settings for multiple
users in a location file. The *.site part of .Rprofile.site suggests
site-wide settings. So, use ~/.Rprofile to control your R startup
settings.
It was tough on me (mentally draining) because I want to learn R
and just couldn't break through until I believe either you or Peter
picked up on my using notepad.
Well, I am glad you guys really want to help and must as I needed it.
Regards,
Bruce