Closed richfitz closed 10 years ago
Rich, so i tried this. All the data files built perfectly but I encountered a few problems.
See the pdftex.def package documentation for explanation.
Type H
l.543 ...aphics{figure/fraction_phy_binomial1.png}
make: *\ [wood.pdf] Error 43
Not sure what this is. any suggestions?
For (1) - yes: I'll add that to the README file. Not sure which other packages we need, but I'll look into that too. There's a dependence on diversitree that might be only for drop.tip
, and if so I'll try and drop that too.
For (2) - Hmm, no idea. That worked fine here. This is in processing the md -> html, I presume? That worked fine here, but it looks like you're missing files that you should have. Could you try it on a fresh clone perhaps?
ok this was on a fresh clone. it could have to do with some files i don't have on my computer. linux is weird. will try and figure this out to see if it specific to my machine or not.
Weird. I don't get a figure with a 1.png ending. could you email me the md and rmd files so I can see where that would have come from?
That's so weird. This section here:
``` {r fraction_phy_binomial,fig.cap="Woodiness percentage by order"}
fig.fraction.on.phylogeny(phy.o, res.b)
fig.fraction.on.phylogeny(phy.o, res.h)
Is getting converted into this:
fig.fraction.on.phylogeny(phy.o, res.b)
fig.fraction.on.phylogeny(phy.o, res.h)
Which makes no sense. There are two options I see for this: (1) knitr, (2) linux/mac disagreement about devices.
What version of knitr do you have? I am using 1.5 (2013-09-28). That appears to be the most current version, so you probably have that.
Can you try deleting the line that says
on.exit(par(op))
The line is [here](https://github.com/richfitz/wood/blob/17d9c7a39ec06122859441e99587c9216b750f40/wood-functions.R#L389), and see if that fixes it.
yes that is very strange.
i commented out this line but same error. I have the same version of knitr installed. Maybe get @wcornwell to try this on his mac to see if it is perhaps a system-specific thing (or perhaps just something weird in how i have my devices setup??).
I get this error:
Rscript R/make-output-dat.g.rds.R Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match Calls: load.woodiness.data.genus -> rbind -> rbind Execution halted make: *\ [output/dat.g.rds] Error 1
@wcornwell - is that also on a clean clone? I don't get that error and @mwpennell presumably didn't either.
Reproducibility is hard, let's go shopping.
That was a dirty clone, trying again
OK, cool. I think I saw that error when I had dirty files in output hanging about as I changed which columns were retained.
* caught segfault * address 0xa0, cause 'memory not mapped'
Traceback:
1: .Call(symbol)
2: Module(module, mustStart = TRUE, where = env)
3: doTryCatch(return(expr), name, parentenv, handler)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatch(Module(module, mustStart = TRUE, where = env), error = function(e) e)
7: loadModule(module = "diversitree", what = TRUE, env = ns, loadNow = TRUE)
8: (function (ns) loadModule(module = "diversitree", what = TRUE, env = ns, loadNow = TRUE))(
Probably a Rcpp vs R vs gcc vs apple vs clang issue. My suggestion is to reinstall Rcpp and diversitree, but that's a PITA at the moment. If you have a working compiler toolchain, do
install.packages(c("Rcpp", "diversitree"), type="source")
I'm going to work out if dropping diversitree makes sense at this point (see #5). I need to do a new CRAN release soon, but things are a gong show with the Mavericks changing compilers.
OK, given that this works on two of my machines and on travis (#4) I figure this is at least somewhat reproducible.
@mwpennell -- can you try this