Be careful.
This will update all the packages in this shared library location, which is perfect if you're only running R-3.5.0, but may cause problems if you ever want to run code on older versions of R.
If you're the only user, and this is not production code, this practise is probably fine.
But if you are running code in a shared environment, or a production environment, then do make sure you follow robust practise when updating R versions.