@Marco117 - Thanks for the question and using MS Q&A platform.
This is an excepted behavior that the libraries are reinstalled every time the cluster is turned on because the cluster is ephemeral, meaning it is created and destroyed on-demand. Therefore, any changes made to the cluster are lost when it is destroyed.
In you want to retain the packages installed on the runtime without waiting time, you need to create a custom image with the required libraries pre-installed. This way, the libraries will be available every time the cluster is created from the custom image.
For more details, refer to Customize containers with Databricks Container Services and your question is already answered on SO platform: https://stackoverflow.com/questions/77560141/can-i-install-r-libraries-in-databricks-without-reinstalling-each-time-the-clust/77562106
I hope this helps! Let me know if you have any further questions.


