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 > > > On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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
2017-Apr-15 19:34 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
> On Apr 15, 2017, at 12:14 PM, BR_email <br at 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 -- David.> > 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 >> >> >> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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
Boris Steipe
2017-Apr-15 19:46 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
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 B.> On Apr 15, 2017, at 3:14 PM, BR_email <br at 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 >> >> >> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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: Thank you. 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 David Winsemius wrote:>> On Apr 15, 2017, at 12:14 PM, BR_email <br at 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 >
Boris: As before, you assume that I, Bruce Ratner, just asks questions without first trying it myself. FYI: I purchased and read four RStudio books, as well as all the links I found in the web. I will not take your maligning me. Please try to assist me, but do not bully me. Bruce Ratner, Ph.D. Boris Steipe 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 > > B. > > >> On Apr 15, 2017, at 3:14 PM, BR_email <br at 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 >>> >>> >>> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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. > > >
Jeff Newmiller
2017-Apr-15 20:09 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
You type each expression interactively at the R console and look at the path it prints. Then you know where to look, or if no file exists there then you know where to put the file you want to be there. -- Sent from my phone. Please excuse my brevity. On April 15, 2017 12:14:32 PM PDT, BR_email <br at 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 >> >> >> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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
2017-Apr-15 20:10 UTC
[R] Setting .Rprofile for RStudio on a Windows 7 x64bit
> On Apr 15, 2017, at 12:46 PM, Boris Steipe <boris.steipe at 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+rprofileAnother promising search strategy would be SO with "[rstudio]" in the tags: http://stackoverflow.com/search?q=%5Brstudio%5D+rprofile+windows -- david.> > B. > > >> On Apr 15, 2017, at 3:14 PM, BR_email <br at 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 >>> >>> >>> On Sat, Apr 15, 2017 at 9:06 AM, BR_email <br at 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-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. > > ______________________________________________ > 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