problem with R 4.1.3

Some packages changes in R v4.1.3. Code and package updates are required.