<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I specify a custom CRAN mirror to be used permanently by default when installing packages within R Notebooks? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/3747#M679</link>
    <description>&lt;P&gt;Hi @Niklas Letz​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 06:51:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-16T06:51:53Z</dc:date>
    <item>
      <title>How can I specify a custom CRAN mirror to be used permanently by default when installing packages within R Notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/3746#M678</link>
      <description>&lt;P&gt;When installing Notebook-scoped R libraries I don't want to manually specify the custom CRAN mirror each time like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;install.packages("diffdf", repos="my_custom_cran_url'')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead I want to take the custom CRAN mirror URL by default so that I don't have to specify the URL each time:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;install.packages("diffdf")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Normally this is done by adjusting the .Rprofile or Rprofile.site files. Unfortunately those files will only have an effect for the RStudio sessions and not for the SparkR sessions in the R Notebooks.&lt;/P&gt;&lt;P&gt;After some try and error I figured out that specifying the default CRAN mirror URL under /databricks/spark/R/lib/SparkR/R/SparkR will work as desired. However I can't update this file automatically via a cluster-scoped init script as at the time of the init script execution the lib/SparkR/R/SparkR doesn't exist already (The path/file is somehow dynamically build at a later time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I couldn't find any useful information for this particular use case on the internet. Does anyone have an idea?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 14:30:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/3746#M678</guid>
      <dc:creator>niklas</dc:creator>
      <dc:date>2023-06-01T14:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify a custom CRAN mirror to be used permanently by default when installing packages within R Notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/3747#M679</link>
      <description>&lt;P&gt;Hi @Niklas Letz​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:51:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/3747#M679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T06:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify a custom CRAN mirror to be used permanently by default when installing package</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/40990#M27275</link>
      <description>&lt;P&gt;Got solution on Stack Overflow for this problem:&amp;nbsp;&lt;A href="https://stackoverflow.com/a/76777228/18082636" target="_blank" rel="noopener"&gt;https://stackoverflow.com/a/76777228/18082636&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 13:46:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-specify-a-custom-cran-mirror-to-be-used-permanently-by/m-p/40990#M27275</guid>
      <dc:creator>niklas</dc:creator>
      <dc:date>2023-08-22T13:46:37Z</dc:date>
    </item>
  </channel>
</rss>

