Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Here's a a small tip that I found really useful while sharing a Power BI Desktop file with several people. When you need to load some packages in an R script, there is always the possibility that the computer running the script does not have them installed. So, in order to bullet proof your script from this kind of error messages just use that line of R Code:
if(!require('Package Name')){ install.packages('Package Name', repos='http://cran.us.r-project.org' ,lib=.libPaths()) }
That will install on the default library the package needed before loading it, if it is not installed. I attach a sample file, with dummy data and a package I didn't have installed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.