<?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: R code that works perfectly on Rstudio does not run here in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9882#M5165</link>
    <description>&lt;P&gt;Hi, Could you please provide some more details on the configuration of the DBR version? R studio version? etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 06:44:23 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-02-08T06:44:23Z</dc:date>
    <item>
      <title>R code that works perfectly on Rstudio does not run here</title>
      <link>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9881#M5164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a "simple" R script that I need to import into Databricks and am running into errors.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB &amp;lt;- Techtb %&amp;gt;% dplyr::filter(grepl('being evaluated', Comentarios))&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;#TipoB$yearsSpec &amp;lt;- NA&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$Comentarios,'[^♂]*being evaluated[^0-9]*',"")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$yearsSpec,'[ | \\n| \\t][^♂]*',"")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$yearsSpec,",",".")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$yearsSpec,"\\+","")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$yearsSpec,"YRS","")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- str_replace(TipoB$yearsSpec,"~","")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;TipoB$yearsSpec &amp;lt;- as.numeric(TipoB$yearsSpec)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I manage to create the TipoB table normally. But then I can't create new columns as I do on Rstudio.  I even tried to create an empty column before inserting the data but it did not work. I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;SyntaxError: invalid syntax&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;  File "&amp;lt;command-2335304911107903&amp;gt;", line 1&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;    TipoB$yearsSpec &amp;lt;- NA&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;              ^&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;SyntaxError: invalid syntax&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read the TipoB table so I know it is there. But why would I not be able to use the "$" symbol? Can anyone help and show me where I'm messing up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:20:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9881#M5164</guid>
      <dc:creator>771407</dc:creator>
      <dc:date>2023-02-07T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: R code that works perfectly on Rstudio does not run here</title>
      <link>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9883#M5166</link>
      <description>&lt;P&gt;R studio version 2022.12.0.&lt;/P&gt;&lt;P&gt;R latest version available on 08/FEB/2023.&lt;/P&gt;&lt;P&gt; I don't know where to find the DBR version and configuration. Can you direct me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:09:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9883#M5166</guid>
      <dc:creator>771407</dc:creator>
      <dc:date>2023-02-08T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: R code that works perfectly on Rstudio does not run here</title>
      <link>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9884#M5167</link>
      <description>&lt;P&gt;when you create a cluster, you will need to select aa DBR version. look for "Databricks Runtime version"&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:41:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9884#M5167</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-03-01T18:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: R code that works perfectly on Rstudio does not run here</title>
      <link>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9882#M5165</link>
      <description>&lt;P&gt;Hi, Could you please provide some more details on the configuration of the DBR version? R studio version? etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 06:44:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-code-that-works-perfectly-on-rstudio-does-not-run-here/m-p/9882#M5165</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-02-08T06:44:23Z</dc:date>
    </item>
  </channel>
</rss>

