rdinnager / slimr

Run and Analyse SLiM Population Genetics Forward Simulations from R.
https://rdinnager.github.io/slimr
Other
7 stars 1 forks source link

Including an empty code block in slim_block (e.g. {}) causes error #19

Open rdinnager opened 4 years ago

rdinnager commented 4 years ago

Leaving code blocks empty, leads to an error like this:

Error in parse(text = elt) : <text>:1:1: unexpected '}'
1: }
    ^

Should fix this as I often add empty blocks to remind me to fill-in later while I am developing new simulations. I imagine other users may want to do similar..

rdinnager commented 1 year ago

Strangely, empty code blocks in SLiM code that are converted to slimr via as_slimr_script() do not cause this error. Curious.