R documentation on my Ubuntu 20.20 is in /usr/share/R/doc. I see no doc directories in the locations you mention using locate /doc/ Maybe you should be asking on R-sig-debian, perhaps with less noise about RStudio? On Sun, 8 Aug 2021, Rolf Turner wrote:> > Should/shouldn't there be one? > > My R seems to be installed in /usr/lib/R. If do an "ls" of this > directory, I get: > >> bin/ COPYING@ etc/ lib/ library/ modules/ >> site-library/ SVN-REVISION > > Definitely no "doc". > > The (only) reason that I am concerned about this, is that I have decided > to experiment a bit with Rstudio, and it apparently wants a "doc" > directory. When I try to start Rstudio I get a pop-up window with the > error message > >> R doc dir (/usr/local/lib64/R/doc) not found. > > Note that /usr/local/lib64/R is a symbolic link to /usr/lib/R. > The latter is where my installation put R; the former seems to be where > Rstudio wants it to. So I created the symbolic link. > > The discrepancy between locations is another puzzle/worry. > > My installation comes from a pre-built binary ("sudo apt install > r-base"). I apparently have the latest version. I remark that I am > running Ubuntu 20.04 with a Mate 1.20.4 desktop. > > How can I get a "doc" directory into my R directory and make Rstudio > happy? > > cheers, > > Rolf Turner > > P.S. I have also tried to ask about this on the Rstudio community > forum, but it seems to me to more of an R question than an Rstudio one. > > R. T. > > -- > Honorary Research Fellow > 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. >--------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k
On Sat, 7 Aug 2021 20:26:13 -0700 (PDT) Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: Documentation on most Linux systems, regardless of release, is commonly located under the /usr/share directory. For R that is /usr/share/doc/R. There is also a "man" entry for R. The rstudio help list might be able to help more than this list.> R documentation on my Ubuntu 20.20 is in /usr/share/R/doc. > > I see no doc directories in the locations you mention using > > locate /doc/ > > Maybe you should be asking on R-sig-debian, perhaps with less noise > about RStudio? > > On Sun, 8 Aug 2021, Rolf Turner wrote: > > > > > Should/shouldn't there be one? > > > > My R seems to be installed in /usr/lib/R. If do an "ls" of this > > directory, I get: > > > >> bin/ COPYING@ etc/ lib/ library/ modules/ > >> site-library/ SVN-REVISION > > > > Definitely no "doc". > > > > The (only) reason that I am concerned about this, is that I have > > decided to experiment a bit with Rstudio, and it apparently wants a > > "doc" directory. When I try to start Rstudio I get a pop-up window > > with the error message > > > >> R doc dir (/usr/local/lib64/R/doc) not found. > > > > Note that /usr/local/lib64/R is a symbolic link to /usr/lib/R. > > The latter is where my installation put R; the former seems to be > > where Rstudio wants it to. So I created the symbolic link. > > > > The discrepancy between locations is another puzzle/worry. > > > > My installation comes from a pre-built binary ("sudo apt install > > r-base"). I apparently have the latest version. I remark that I am > > running Ubuntu 20.04 with a Mate 1.20.4 desktop. > > > > How can I get a "doc" directory into my R directory and make Rstudio > > happy? > > > > cheers, > > > > Rolf Turner > > > > P.S. I have also tried to ask about this on the Rstudio community > > forum, but it seems to me to more of an R question than an Rstudio > > one. > > > > R. T. > > > > -- > > Honorary Research Fellow > > 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. > > --------------------------------------------------------------------------- > Jeff Newmiller The ..... ..... Go > Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. > ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/Batteries O.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. > rocks...1k > > ______________________________________________ > 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. >
I thought that I should let everyone know that I have, in some sense at least, resolved my problem with 'no "doc" directory' and Rstudio. I got a useful reply off-list from Duncan Murdoch (thanks Duncan) to the effect that Rstudio requires its own purpose-specific binaries. I was always under the impression that Rstudio would invoke whatever instance of R that the user had installed, but this seems not to be the case. Duncan pointed me to instructions for installing R in such a way as to satisfy Rstudio. I had not found such instructions previously. After considerable travail (I had "curl" problems with which I will not bore you) I managed to effect this installation, which put R into /opt/R/4.1.0 and lo and behold /opt/R/4.1.0/lib/R does indeed contain a "doc" directory (unlike, e.g. /usr/lib/R which is my non-Rstudio instance of R lives.) Having done that and having made the appropriate symbolic links, I was able to click on the Rstudio icon under Applications -> Programming and get Rstudio running. So far I can find no way to get Rstudio to do what I had hoped to be able to do --- something that cannot effectively be done in raw R. But that's another story. I raised this same issue on the "Rstudio Community" web site, and the contrast between what I got from that and what I got from R-help was striking. What I got from the former was deafening silence. I got seven responses on the R-help mailing list, plus Duncan's off-list response. Does this say something about the efficacy of mailing lists as contrasted with web site fora? Or is it just a difference between the R community and the Rstudio community? cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276