[R] Problem accessing functions in package 'roxygen'
Robert A LaBudde
ral at lcfltd.com
Sat Sep 5 03:14:07 CEST 2009
Thanks, Uwe. Unfortunately, that doesn't work either:
> library('roxygen')
Warning message:
package 'roxygen' was built under R version 2.9.1
> roxygen::trim(' 1234 ')
Error: 'trim' is not an exported object from 'namespace:roxygen'
I ended up using
trim <- function(x) gsub("^[[:space:]]+|[[:space:]]+$", "", x)
instead.
At 01:42 PM 9/3/2009, Uwe Ligges wrote:
>Robert A. LaBudde wrote:
>>I have Vista Home with R-2.9.0, and installed and tried to test the
>>package 'roxygen':
>> > utils:::menuInstallPkgs()
>>trying URL
>>'http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/2.9/roxygen_0.1.zip'
>>Content type 'application/zip' length 699474 bytes (683 Kb)
>>opened URL
>>downloaded 683 Kb
>>package 'roxygen' successfully unpacked and MD5 sums checked
>>The downloaded packages are in
>> C:\Users\RAL\AppData\Local\Temp\RtmpZPlILq\downloaded_packages
>>updating HTML package descriptions
>>Warning message:
>>In file.create(f.tg) :
>> cannot create file
>> 'C:\PROGRA~1\R\R-29~1.0/doc/html/packages.html', reason 'Permission denied'
>> > library('roxygen')
>>Warning message:
>>package 'roxygen' was built under R version 2.9.1
>> > trim(" 1234")
>>Error: could not find function "trim"
>>I have a similar problem with trim.right(), trim.left() and other
>>functions I've tried.
>>Any ideas?
>
>Probably it is not intende to call trim and friends like that,
>because they are not exported from roxygen's namespace, hence you
>could use roxygen:::trim(" 1234")
>
>Uwe Ligges
>
>
>>================================================================
>>Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral at lcfltd.com
>>Least Cost Formulations, Ltd. URL: http://lcfltd.com/
>>824 Timberlake Drive Tel: 757-467-0954
>>Virginia Beach, VA 23464-3239 Fax: 757-467-2947
>>"Vere scire est per causas scire"
>>______________________________________________
>>R-help at 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.
================================================================
Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral at lcfltd.com
Least Cost Formulations, Ltd. URL: http://lcfltd.com/
824 Timberlake Drive Tel: 757-467-0954
Virginia Beach, VA 23464-3239 Fax: 757-467-2947
"Vere scire est per causas scire"
More information about the R-help
mailing list