R CMD BATCH /dbfs/databricks/scripts/prophet_install_script. Download and install R packages stored in GitHub, GitLab, Bitbucket, Bioconductor, or plain subversion or git repositories. Here are the options I see when attempting to install a package to a cluster:Īttempt at downloading directly to cluster:ĭbutils.fs.mkdirs("dbfs:/databricks/scripts/")ĭbutils.fs.put("/databricks/scripts/prophet_install_script.R","""ĭevtools::install_version(\"rstantools\", version = \"2.0.0\")ĭbutils.fs.put("/databricks/scripts/stock_cluster_init_script_v1.sh",""" How would I add this snippet of code to install the prophet package to my Databricks cluster? However, I want to download it directly to my cluster. Below is the following code to install it to the notebook: Sys.setenv(DOWNLOAD_STATIC_LIBV8 = 1)ĭevtools::install_version("rstantools", version = "2.0.0") There is an installgithub function to install R packages hosted on GitHub in the devtools package. I want to install it directly to my cluster rather than my notebook. I am trying to install the prophet package to Databricks. On the Github webpage of the package you want to install, in the top right corner click on 'Code', then click 'Download ZIP', save it, unzip it, and move the unzipped folder to the libpath directory identified above, ensuring the folder name has retained the correct name 3.
0 Comments
Leave a Reply. |