Skip to content

Issues with new unit implementation #14

@thomasp85

Description

@thomasp85
  • 1)
* installing *source* package ‘augmentedRCBD’ ...
...
** byte-compile and prepare package for lazy loading
Error in get(x, envir = ns, inherits = FALSE) :
 object 'unit.list' not found
Error: unable to load R code in package ‘augmentedRCBD’

which I presume should be using the generic unit().

The problem is the resize_heights() function, which plays silly games to try to perform a unit subset assignment. I think that this might be fixed by just relying on grid's unit subset assignment, but I need to test on R with the new-unit patch applied.

  • 2)

Packages Gmisc ggfittext ggrepel ggstatplot: check class() assuming length 1, a bug in those packages. We reported Gmisc: I will leave the others until this is live.

  • 3)
VECTOR_ELT() can only be applied to a 'list', not a 'double'

in many packages:
BAS CINNA DescribeDisplay EMMIXmfa GGally ICtest LDheatmap
PPforest SHELF StratigrapheR airGR auditor codebook ggmcmc lemon
nzelect qualvar randomForestExplainer rrr specmine staRdom statVisual tsfeatures userfriendlyscience

GGally and codebook give some context:

Error in grid.Call.graphics(C_setviewport, vp, TRUE): VECTOR_ELT() can only be applied to a 'list', not a 'double'

as before.

  • 4)
 (list) object cannot be coerced to type 'double'

from unit() in ggpol.

  • 5)
REAL() can only be applied to a 'numeric', not a 'integer'

from Ops.units in IntNMF NMF SCROPIUS diceR iTOP pheatmap, seemingly all from NMF.

  • 6)
`heatmap_width` and `width` should not all be the absolute units.

from CNVScope armada countToFPKM eclust wilson

  • 7)
old version of unit class is no longer allowed

from fewer after reinstallation - MTLR SpatialBall firebehavioR foreSIGHT superheat xpose . Some say from is.unit().

  • 8)
Error in mm2pixels(convert(u, "mm")) : Unit must be in millimeters

from MendelianRandomization Miso PCRedux PPQplan Plasmidprofiler otsad autoplotly frailtyEM getTBinR gprofiler2 heatmaply manhattanly
neatmaps otsad personalized plotly rabhit trelliscopejs wilson

  • 9)
    ParamHelpers segfaults, in its obfuscated tests.

  • 10)
    cowplot has a Floating point exception in shared_legends.Rmd.

  • 11)

Error in FUN(X[[i]], ...) : object is not coercible to a unit
Calls: blobbogram -> Summary.unit -> unlist -> lapply -> FUN

from gemtc.

  • 12)
Error in unit(3, "grobwidth", data = seg_plot_yaxis_grobs[[longest_segment]]) :
 data must be either NULL, have length 1, or match the length of the final unit vector
Calls: plot_gene_map -> unit

from genoPlotR.

  • 13)
Error in grid::unit(c(0, 0, 0, marginLength), marginUnit) : Invalid unit
Calls: ggMarginal ... addMainTheme -> <Anonymous> -> find_args -> mget -> <Anonymous>

from ggExtra

  • 14)
Error in `attributes<-`(x, attr) :
 'names' attribute [2] must be the same length as the vector [1]
Calls: <Anonymous> ... gtable_add_rows -> insert.unit -> unit.c -> [ -> [.unit

from ggraph

  • 15)
    Error in grid::unit(c(0, 0, 0, marginLength), marginUnit) : Invalid unit
    Calls: ... addMainTheme -> -> find_args -> mget ->

from ggstatsplot

  • 16)
 Error in unit(x, unit) : Invalid unit
 Calls: grid.export ... as.animUnit -> as.animUnit.numeric -> animUnit -> is.unit -> unit

from gridSVG, which I expect is known.

  • 17)
Error in (function (cl, name, valueClass)  :
 c("assignment of an object of class “simpleUnit” is not valid for @‘mar’ in an object of class “hexVP”; is(value, \"unit\") is not TRUE", "assignment of an object of class “unit” is not valid for @‘mar’ in an object of class “hexVP”; is(value, \"unit\") is not TRUE", "assignment of an object of class “unit_v2” is not valid for @‘mar’ in an object of class “hexVP”; is(value, \"unit\") is not TRUE")
Calls: plot -> plot -> .local -> hexViewport -> <Anonymous>

from hexbin lidR survey

  • 18)
Error in unit(as.numeric(arrow$length) * mag, attr(arrow$length, "unit")) :
 Invalid unit
Calls: <Anonymous> ... <Anonymous> -> .fun -> do.call -> <Anonymous> -> f -> unit

from metR tmap

  • 19)
Warning in check_units(width, unit) :
 Multiple grid::units detected. Casting all to 'unit' argument ('mm').
Warning in check_units(height, unit) :
 Multiple grid::units detected. Casting all to 'unit' argument ('mm').
>
> # With no panels, printing shows the layout
> figure1
Error in grid::unit(., saved_unit) : Invalid unit
Calls: <Anonymous> ... eval -> _fseq -> freduce -> <Anonymous> -> <Anonymous>

from multipanelfigure

  • 20)
Error in sum(g_tab$widths[[5]], g_tab$widths[[6]], g_tab$widths[[7]]) :
 invalid 'type' (list) of argument
Calls: thresh_forest

in nathresh

  • 21)
 Error: isTRUE(all.equal(getGrob(result, "MAP"), truth)) is not TRUE

in portfolio

  • 22)
Error in grid::unit(c(0, 0, 0, marginLength), marginUnit) : Invalid unit
Calls: scatterplot ... addMainTheme -> <Anonymous> -> find_args -> mget -> <Anonymous>

in sensitivity

  • 23)
Error in matchData[[i]] * amount[i] :
 non-numeric argument to binary operator
Calls: plotSelected ... <Anonymous> -> do.call -> sisalTable -> Summary.unit

in sisal and stripless

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions