squidgroup / squidSim

squidSim in tool for simulating data from multi-level/hierarchical models, including genetic, phylogenetic, temporal and spatial effects
Other
6 stars 0 forks source link

example in vignette produces warning #22

Closed BertvanderVeen closed 2 years ago

BertvanderVeen commented 2 years ago

The example on this page: http://squidgroup.org/squidSim_vignette/2.3-simulating-predictors-at-different-hierarchical-levels.html produces the warning:

Warning message:
In length(x) == 1 && x == "" :
  'length(x) = 1000 > 1' in coercion to 'logical(1)'.
joelpick commented 2 years ago

Found the bug - isn't anything important (everything runs as it should). Weird that I've never seen it before -Possibly an R version issue? Anyway will fix ASAP. Thanks!

BertvanderVeen commented 2 years ago

I have a linux machine, perhaps it doesn't show on windows? R version is 4.2.1

joelpick commented 2 years ago

I'm using mac - the warning now shows, but no memory of it before. Also R 4.2.1 and recently updated

joelpick commented 2 years ago

fixed with 6d9c498