Forum Discussion
Peter_23
11 months agoAdvocate V
Custom enviroment notebook
Hi community, I have a custom R notebook development by external users, but then notebook install packages which are not available in "Built-in libraries" (R), if it runs in workspace its works fine...
- 11 months ago
Hi Peter_23,
We appreciate your inquiry through the Microsoft Fabric Community Forum.Based on my understanding, the R packages are reinstalling each time because CRAN libraries are not built-in or supported at the Environment level in Fabric. By default, they must be installed per session in the notebook unless we package them into a .tar.gz.We can create and reuse a custom Environment in notebooks but with some limitations:1.For custom R packages (.tar.gz),go to Workspace → Environments → New Environment. Upload the .tar.gz under Custom Libraries. Save and publish the environment. From notebooks, select this environment from the Environment dropdown.2.For CRAN packages, we can eithera. Install inside the notebook with install.packages("dplyr", repos="https://cran.microsoft.com/snapshot/2021-07-16/")b. Bundle them into a .tar.gz and upload to the Environment, same as custom packages.Additionally, kindly find refer the below links:We hope the information provided helps to resolve the issue. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.Thank you.
v-pnaroju-msft
11 months agoCommunity Support
Hi Peter_23,
We appreciate your inquiry through the Microsoft Fabric Community Forum.
Based on my understanding, the R packages are reinstalling each time because CRAN libraries are not built-in or supported at the Environment level in Fabric. By default, they must be installed per session in the notebook unless we package them into a .tar.gz.
We can create and reuse a custom Environment in notebooks but with some limitations:
1.For custom R packages (.tar.gz),go to Workspace → Environments → New Environment. Upload the .tar.gz under Custom Libraries. Save and publish the environment. From notebooks, select this environment from the Environment dropdown.
2.For CRAN packages, we can either
a. Install inside the notebook with install.packages("dplyr", repos="https://cran.microsoft.com/snapshot/2021-07-16/")
b. Bundle them into a .tar.gz and upload to the Environment, same as custom packages.
Additionally, kindly find refer the below links:
We hope the information provided helps to resolve the issue. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.
Thank you.
- Peter_2311 months agoAdvocate V
ok v-pnaroju-msft thank you