MUCollective / multiverse

R package for creating explorable multiverse analysis
https://mucollective.github.io/multiverse/
GNU General Public License v3.0
62 stars 5 forks source link

parse_multiverse should not generate a warning when no parameters given #12

Closed mjskay closed 5 years ago

mjskay commented 5 years ago

It should be possible to parse a multiverse with no parameters and execute it --- not all code added to the multiverse will have parameters necessarily. So we need to handle the special case of a multiverse with only one universe in it in some elegant way.

Currently this generates a warning:

Warning message:
In parse_multiverse(multiverse) :
  expression passed to the multiverse has no branches / parameters

Which I don't think it should?

Maybe it should instead create a multiverse table with one row, no parameter columns, and an empty parameter default assignment