Hello useRs,

I am trying to put my funcs in a package to avoid clutter in my workspace as 
the funcs are now in .Rprofile.
All plain R code no compilations. Using win XP with a full cygwin install and 
R2.12
I first did

package.skeleton("mypack",list="getdfv", namespace=T) # just a single func

which created a folder with the required stuff in it.
Calling R CMD build creates a tar.gz file with warnings about DOS paths.

Trying to install from the R GUI complains
> install.packages("mypack",repos="C:/Temp/mypack_1.0.tar.gz")
Warning: unable to access index for repository 
C:/Temp/mypack_1.0.tar.gz/bin/windows/contrib/2.12
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package 'mypack' is not available

putting the mypack folder in zip and then trying to install from the zip 
produces no error message but then

> library("mypack")
Error in library("mypack") : 'mypack' is not a valid installed package

Just putting the folder in the library folder of R did not work either

Finally
R CMD Install complains about missing title in the Rd file. I do not have a Rd 
file as the skeleton did not create it.

Please, advise how to make simple R code available to be called without showing 
in ls()

Thank you.
Stephen Bond


        [[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.

Reply via email to