omegahat / XML

The XML package for R
Other
20 stars 11 forks source link

install error #13

Open jkylearmstrong opened 5 years ago

jkylearmstrong commented 5 years ago
** preparing package for lazy loading
Creating a generic function for ‘source’ from package ‘base’ in package ‘XML’
Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : 
  methods can add arguments to the generic ‘source’ only if '...' is an argument to the generic
Error : unable to load R code in package ‘XML’
ERROR: lazy loading failed for package ‘XML’
* removing ‘/home/cdsw/R/XML’

The downloaded source packages are in
    ‘/tmp/RtmpqPIPM9/downloaded_packages’
Warning message:
In install.packages("XML") :
  installation of package ‘XML’ had non-zero exit status
songhuazhang commented 5 years ago

I'm having the same issue. My R is 3.4.1, which could be the issue. Company server and don't have admin rights to upgrade :(

duncantl commented 5 years ago

Why not download the package source, comment out the line in R/xmlInternalSource.R that reads setMethod("source", "XMLCodeFile", tmp.source) and the line exportMethods(source) in the NAMESPACE file and then install the resulting code.