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 <br at 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? >> (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") > 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.] >
To _ALL_ who helped me. In the final analysis, I was doing everything correctly, as per the manuals, the links, and the books I bought. However, in all the material, it never read mention of creating of the .Rprofile file with a programmer/developer text editor, which allows for no extension, no R, no txt. 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 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 <br at 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? >>> (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") >> 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.] >> >
Sparks, John James
2017-Apr-18 13:52 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
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 <br at 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??? >>> (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") >> 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.] >> > > ______________________________________________ > 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.
Bruce Ratner PhD
2017-Apr-18 15:26 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
Dear John: My pleasure to respond to your request. Problem: Cannot get the .Rprofile file to take affect in either R (or RStudio). As to "what" can be in put into a .Rprofile file is abound, many examples in the manuals, blogs, links, and books. 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 <jspark4 at 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 <br at 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? >>>> (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") >>> 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.] >>> >> >> ______________________________________________ >> 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. > > >