[R] Package build/check OK, install looking for irrelevant function

Bryan Hanson hanson at depauw.edu
Thu Nov 10 03:47:10 CET 2011

Hello R Users:

I have 3 packages that I authored and they build and check just fine locally.  However, when I try to install the local source packages (from the .tar.gz), I get the following message:

Error in `+.POSIXt`(as.POSIXct(origin, tz = tz, ...), x) : 
  could not find function "%is.a%"
In addition: Warning message:
In install.packages(file.choose(), .libPaths()[1], NULL, type = "source") :
  installation of package ‘/Users/bryanhanson/Documents/Research/MetabolomicsProjects/ChemometricsStuff/BAHpackages/FuncMap_1.0-1.tar.gz’ had non-zero exit status

Now this is pretty surprising to me; I don't use this function or any having to do with times or time series.  I get the same message no matter which of the 3 packages I try to install locally.  Further, if I go looking for whatever this function is, the following occurs, and no browser window opens:

> findFn("is.a")
found 3 matches
Error in stopifnot(x %is.a% "POSIXct") : could not find function "%is.a%"


> ?is.a
Error in help("is.a", package = NULL) : 
  could not find function "%is.not.a%"

Notice by the way it's not looking for what I asked (is.a vs is.not.a).  Perhaps unrelated.

And a google search of the error message doesn't produce anything recent.

I've restarted my computer and upgraded to the latest patched R.  Problem remains.  This was not occurring last weekend, but I'm not sure how I might have caused it.

Session info further down.

Any help appreciated.  Bryan
Bryan Hanson
Professor of Chemistry & Biochemistry
DePauw University

> sessionInfo()
R version 2.14.0 Patched (2011-11-08 r57605)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] graphics  utils     datasets  grid      grDevices stats     methods  
[8] base     

other attached packages:
 [1] HiveR_0.2-1      FuncMap_1.0-1    ChemoSpec_1.48-4 ggExtra_0.5.1   
 [5] gridExtra_0.8.5  GGally_0.3.1     stringr_0.5      ggplot2_0.9.0   
 [9] proto_0.3-9.2    plyr_1.6         sos_1.3-1        brew_1.0-6      
[13] xtable_1.6-0     rgl_0.92.798    

loaded via a namespace (and not attached):
 [1] amap_0.8-5            bipartite_1.17        car_2.0-11           
 [4] chemometrics_1.3.2    class_7.3-3           cluster_1.14.1       
 [7] colorspace_1.1-0      compositions_1.10-2   dichromat_1.2-3      
[10] digest_0.5.1          e1071_1.6             gclus_1.3            
[13] igraph_0.5.5-3        lars_0.9-8            lattice_0.20-0       
[16] MASS_7.3-16           mclust_3.4.10         memoise_0.1          
[19] munsell_0.3           mvbutils_2.5.101      mvoutlier_1.9.3      
[22] mvtnorm_0.9-9991      nnet_7.3-1            pcaPP_1.9-44         
[25] pls_2.2-0             R.oo_1.8.3            R.utils_1.8.7        
[28] RColorBrewer_1.0-5    reshape2_1.1          RFOC_2.0-02          
[31] robCompositions_1.5.0 robustbase_0.7-8      rpart_3.1-50         
[34] rrcov_1.3-01          scales_0.1.0          seriation_1.0-6      
[37] sna_2.2-0             som_0.3-5             splines_2.14.0       
[40] stats4_2.14.0         survival_2.36-10      tensorA_0.36         
[43] tnet_3.0.5            tools_2.14.0          TSP_1.0-4            
[46] vegan_2.0-1          

More information about the R-help mailing list