Error with CmdStanR - Error in mde(x) : 'list' object cannot be coerced to type 'integer'

I am having an error (Error in mde(x) : ‘list’ object cannot be coerced to type ‘integer’) when I am running MCMC.

My Code is as follows:
Capture2

Capture1

After running the MCMC code I get the following error:
Error in mde(x) : ‘list’ object cannot be coerced to type ‘integer’

My list object is as follows:
Capture

  • Operating System: Windows 10 Enterprise (64 bit)
  • CmdStan Version: 2.29.2