Browse code

temporary fix for 'Could not find function getClass' warning -- see ChangeLog

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@57860 bc3139a8-67e5-0310-9ffc-ced21a209358

Laurent Gatto authored on 07/09/2011 16:25:03
Showing4 changed files

  • ChangeLog index 9564583d81..b992769642 100644
  • DESCRIPTION index 7b8ca0f891..a9fe42f9a3 100644
  • NAMESPACE index 6f2fd1173a..3d13a72111 100644
  • R/zzz.R index b0a4f23372..642b5ffa00 100644
... ...
@@ -1,3 +1,13 @@
1
+2011-09-07 Laurent Gatto <lg390@cam.ac.uk>
2
+	* temporary fixed the 'could not find function "getClass"' warning 
3
+	  adding require("methods", ... ) to .onLoad 
4
+	  (see http://comments.gmane.org/gmane.comp.lang.r.rcpp/2140)
5
+	  but this produces a note about 'Package startup functions should 
6
+	  not change the search path.' But adding methods to the depends 
7
+  	  fiels, as advertised in .onAttach, does not fix the original 
8
+	  warning.
9
+	* Bump version number to 0.99.2 to track changes.
10
+
1 11
 2011-08-10  Steffen Neumann  <sneumann@ipb-halle.de>
2 12
 	* Temporary Fix for "unable to find ... for function "peaks"
3 13
 	  by explicitely specifying mzR:: namespace
... ...
@@ -1,7 +1,7 @@
1 1
 Package: mzR
2 2
 Type: Package
3 3
 Title: parser for netCDF, mzXML, mzData and mzML files (mass spectrometry data)
4
-Version: 0.99.1
4
+Version: 0.99.2
5 5
 Author: Bernd Fischer, Steffen Neumann, Laurent Gatto
6 6
 Maintainer: Bernd Fischer <bernd.fischer@embl.de>, 
7 7
 	    Steffen Neumann <sneumann@ipb-halle.de>,
... ...
@@ -15,7 +15,7 @@ Description: mzR provides a unified API to the common file formats
15 15
 	     code has previously been used in XCMS.
16 16
 License: Artistic-2.0
17 17
 LazyLoad: yes
18
-Depends: methods, Rcpp (>= 0.9.4)
18
+Depends: Rcpp (>= 0.9.4), methods
19 19
 Imports: Biobase
20 20
 Suggests: msdata, RUnit, faahKO
21 21
 LinkingTo: Rcpp
... ...
@@ -2,11 +2,8 @@ useDynLib(mzR)
2 2
 
3 3
 importClassesFrom(Biobase, "Versioned")
4 4
 importFrom(Biobase, validMsg)
5
-importFrom(methods, "getClass")
6 5
 importFrom(Rcpp, "loadRcppModules")
7 6
 
8
-##exportPattern("^[[:alpha:]]+")
9
-
10 7
 export(openMSfile)
11 8
 
12 9
 exportMethods(close,
... ...
@@ -1,3 +1,4 @@
1 1
 .onLoad <- function(libname, pkgname){
2
-    loadRcppModules()
2
+  require("methods", character=TRUE, quietly=TRUE)
3
+  loadRcppModules()
3 4
 }