shan_chandra
Databricks Employee
Databricks Employee

@Ross Hamilton​ - Please follow the below steps in the given order

  • Run the below init script in an isolated notebook and add the init script to the issue cluster > Advanced options > Init Scripts
%python 
dbutils.fs.put("/tmp/test/init_script.sh","""
#!/bin/bash 
apt-get update
apt-get -y install libjpeg-dev
""")
  • From CRAN, add the dependent libraries jpeg, gridtext, ggtext to the cluster
  • add survminer from CRAN to the cluster or use the below command in an isolated notebook attached to the cluster
%r 
install.packages("survminer")