Try:
help(package=tm)
(You do not need library(). )
--
David.
On Aug 23, 2011, at 6:17 PM, Tyler Rinker wrote:
I don't think help.start is what I'm looking for but I may be doing
it wrong. I tried:
library(tm)
help.start("tm")
This may be inappropriate as it returns:
library(tm)
help.start("tm")
Error in if (update) make.packages.html(temp = TRUE) :
argument is not interpretable as logical
Just typing help.start() takes me to a web page but I still have to
search.
I wrote a function to do what I want that I could place in
my .First() or a premade package but why bother if there's a way to
already do this?
#=============================================================
# FUNCTION
#=============================================================
manual <- function(library){
LIB <- substitute(library)
LIB <- as.character(LIB)
browseURL(paste("http://cran.r-project.org/web/
packages/",LIB,"/",LIB,".pdf", sep = ""))
}
#=============================================================
# EXAMPLES
#=============================================================
manual(plyr)
manual(tm)
Date: Tue, 23 Aug 2011 15:10:51 -0700
Subject: Re: [R] Opening package manual from within R
From: gunter.ber...@gene.com
To: tyler_rin...@hotmail.com
CC: r-help@r-project.org
After loading the package, does help.start() do what you want?
-- Bert
On Tue, Aug 23, 2011 at 2:32 PM, Tyler Rinker <tyler_rin...@hotmail.com
> wrote:
Simple question but searching rseek did not yield the results I
wanted.
Question: Is there a way to open a help manual for a package from
within R.
For instance I would like to type a function in r for the tm
package and R would open that PDF as seen here:
http://cran.r-project.org/web/packages/tm/tm.pdf
-The vignette function exists for vignettes
[vignette("package.name")] so I assume the same exists for manuals.
-I do not want library(help="package.name") as this is not
detailed enough.
I am running R 2.14.0 beta on a windows 7 machine
Reproducible code does not seem appropriate in this case.
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
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.
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
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, MD
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
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.