Connecting R to SQL server management studio 19

yes, I have and found the root cause. it worked when I eliminated the database and added UID, PWD & replaced Trusted_Connection with TrustServerCertificate.