nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
156 stars 23 forks source link

deal with a data frame as the first element of `inits` #1472

Closed paciorek closed 2 months ago

paciorek commented 3 months ago

In assignDimensions if a user provides a data frame as the first element of inits we think that the user is in the mode of providing a list of lists rather than a list of variables.

Haven't thought this through thoroughly but initial thought is that we check that the first element is not a data frame in order to conclude that we are being given a list of lists.

paciorek commented 2 months ago

Fixing this in branch no_df_init.