As mentioned in Please read: make it easier to help you, you should provide code samples that people can actually run if you want effective help. A large example with code people can’t run is highly unlikely to get people willing to put the time into help.
The error message says you aren’t using get
correctly. See ?get
.