I tried this solution and found out that sudo permissions are, quite understandably, not allowed in Posit cloud.