Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests for trellis graphics do not work when addInfo = T #2

Open
timelyportfolio opened this issue Aug 19, 2014 · 2 comments
Open

tests for trellis graphics do not work when addInfo = T #2

timelyportfolio opened this issue Aug 19, 2014 · 2 comments

Comments

@timelyportfolio
Copy link

The tests for the trellis graphics (ggplot2 and lattice) do not work on my Windows machine. It appears this line is the beginning of the problem

identifyLatticeElements(doc, ans)

and the root of the ultimate failure occurs at this line.

  o = getNodeSet(doc, "/x:svg/r:display/r:lattice", c(x = SVG.xmlns, r = "http://www.r-project.org"))

which cause this line

identifyLatticeLegend(doc, top, plot)

to spit out the error.

Best I can tell it is something with the xPath and I am guessing with namespaces.

SessionInfo

R version 3.1.0 (2014-04-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
[1] lattice_0.20-29      SVGAnnotation_0.93-2 XML_3.98-1.1         Cairo_1.5-6         

loaded via a namespace (and not attached):
[1] grid_3.1.0  tools_3.1.0
@duncantl
Copy link
Owner

Thanks for the report. I'm traveling at present so I won't get to it for another week or so.
Thanks again.

@timelyportfolio
Copy link
Author

oh great, I'll keep trying to debug it.

For additional reference, ternaryplot.R fails similarly at this line

pts = getNodeSet(doc, "//x:g[@clip-path='url(#clip1)']/x:g", "x")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants