search for: whatfrom

Displaying 2 results from an estimated 2 matches for "whatfrom".

Did you mean: platfrom
2011 Oct 25
1
R fails when converting units using Hershey-Fonts
...="HersheySerif"))) > convertHeight(stringHeight(label), unitTo="mm") *** caught segfault *** address 0xadc838f8, cause 'memory not mapped' Traceback: 1: .Call(fnname, ..., PACKAGE = "grid") 2: grid.Call("L_convert", x, as.integer(whatfrom), as.integer(whatto), valid.units(unitTo)) 3: convertUnit(x, unitTo, "y", "dimension", "y", "dimension", valueOnly = valueOnly) 4: convertHeight(stringHeight(label), unitTo = "mm") Possible actions: 1: abort (with core dump, if enabled) 2: no...
2009 Sep 24
1
unexpected behavior of `[<-` method for class unit.arithmetic
...Consider the following, library(grid) w = unit.c(unit(1, "in"), unit(2, "in")) w2 = w + unit(1, "mm") w[2] <- 0 w2[2] <- 0 convertUnit(w, "mm") #[1] 25.4mm 0mm convertUnit(w2, "mm") #Error in grid.Call("L_convert", x, as.integer(whatfrom), as.integer(whatto), : # INTEGER() can only be applied to a 'integer', not a 'NULL' The last line fails, as the naive replacement has destroyed the structure of w2 instead of having assigned a value of 0 to the second unit element. I've also tried, w = unit.c(unit(1, &quot...