RobinHankin / clifford

5 stars 0 forks source link

vignette problem #89

Closed RobinHankin closed 9 months ago

RobinHankin commented 10 months ago

Tried to move inst/pauli_clifford.Rmd to the vignettes/ directory as I am trying to have stokes- style vignettes in the clifford package. But this broke R CMD build:

[snip]

--- re-building ‘clifford.Rnw’ using Sweave

Error: processing vignette 'clifford.Rnw' failed with diagnostics:
 chunk 12 (label = grassmanalgebra) 
Error in as.vector.clifford(x, mode) : 
  all(lapply(tx, length) == 1) is not TRUE

--- failed re-building ‘clifford.Rnw’

SUMMARY: processing the following file failed:
  ‘clifford.Rnw’

Error: Vignette re-building failed.

This took me a very long time to track down but eventually found that the problem was caused by the jordan package overwriting is.zero() which should be generic. See https://github.com/RobinHankin/jordan/issues/13

RobinHankin commented 9 months ago

closing, I don't think there is any good way of fixing this. Packages are very isolated units, and this kind of inter-package cross-over functionality is generally not a good idea.