<?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: Wordcloud with r in R Script Showcase</title>
    <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/301939#M232</link>
    <description>&lt;P&gt;I love the idea with a word cloud that you have more control over. However, when I open the pbix-file to try the visual I get the message "Can't display visuals", with the following details:&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;R script error.&lt;/P&gt;&lt;P&gt;Loading required package: NLP&lt;/P&gt;&lt;P&gt;Loading required package: methods&lt;/P&gt;&lt;P&gt;Loading required package: RColorBrewer&lt;/P&gt;&lt;P&gt;Error in strwidth(words[i], cex = size[i], ...) : invalid 'cex' value&lt;/P&gt;&lt;P&gt;Calls: wordcloud -&amp;gt; strwidth&lt;/P&gt;&lt;P&gt;In addition: Warning messages:&lt;/P&gt;&lt;P&gt;1: In max(freq) : no non-missing arguments to max; returning -Inf&lt;/P&gt;&lt;P&gt;2: In max(freq) : no non-missing arguments to max; returning -Inf&lt;/P&gt;&lt;P&gt;Execution halted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the packages installed. Any ideas?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 10:40:18 GMT</pubDate>
    <dc:creator>ToveHjelm</dc:creator>
    <dc:date>2017-11-13T10:40:18Z</dc:date>
    <item>
      <title>Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/60314#M26</link>
      <description>&lt;P&gt;Although there is a custom visualisation&amp;nbsp;for Wordcloud now, I did this one with r in Power BI Desktop as you get a greater degree of control over it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;library(tm)
library(wordcloud)

words &amp;lt;- Corpus(VectorSource(dataset))
words &amp;lt;- tm_map(words, stripWhitespace)
words &amp;lt;- tm_map(words, content_transformer(tolower))
words &amp;lt;- tm_map(words, removeNumbers)
words &amp;lt;- tm_map(words, removePunctuation)
words &amp;lt;- tm_map(words, removeWords, stopwords("english"))
words &amp;lt;- tm_map(words, stemDocument)
wordcloud(words, scale=c(5,0.5), max.words=50, random.order=FALSE, rot.per=0.35, use.r.layout=FALSE, colors=brewer.pal(8, "Dark2"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached a sample .pbix file with the text from Wikipedia's 'big data' article and the R visualisation.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 08:06:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/60314#M26</guid>
      <dc:creator>wbob</dc:creator>
      <dc:date>2017-12-13T08:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/61519#M36</link>
      <description>&lt;P&gt;Getting an error when trying to render in PowerBI.com. &amp;nbsp;Works fine in PowerBI Desktop...&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Monitor] Loaded provider: [WindowsLibOsProvider] [Monitor] Loaded provider: [SocketStreamProvider] [Monitor] Loaded provider: [DnsStreamProvider] [Monitor] Loaded provider: [HttpServerStreamProvider] [Monitor] Loaded provider: [ClockStreamProvider] [Monitor] Loaded provider: [ResourceManager] [Monitor] Loaded Security Monitor Profile: [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Profile\0.dbconfig] [Monitor] Writable folder: [file:///Users] =&amp;gt; [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Users] [Monitor] Writable folder: [file:///Results] =&amp;gt; [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Results] [Monitor] Writable folder: [file:///Work] =&amp;gt; [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Work] [Monitor] R/O folder: [file:///ThirdParty] =&amp;gt; [C:\WFRoot\SBRole.0\Fabric\work\Applications\ASAzureApp_App0\temp\R_Root_13.0.1605.329] [Monitor] R/O folder: [file:///Script] =&amp;gt; [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Script] [Monitor] R/O folder: [file:///InputData] =&amp;gt; [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\InputData] [Monitor] Scratch folder: [C:\Sandboxing\Sandboxes\5a4800e1-dd61-41e3-9bce-3fb922b5f659\Scratch] [Monitor:WARNING] Cannot find dependency: "Windows.0.0.0.0.0" x64 [Monitor:WARNING] Unable to resolve package dependencies: 0x80070490 [Monitor:ERROR] Unable to create application sandbox environment; the most likely cause of this error is a missing package dependency. Please confirm that all application dependencies are present. (Status=0x80070490) [Monitor:ERROR] Failed to launch application: 0x80070490 [Monitor:WARNING] Failed to retrieve application's exit code! [Monitor] Done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please try again later or contact support. If you contact support, please provide these details.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:11:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/61519#M36</guid>
      <dc:creator>erikskov</dc:creator>
      <dc:date>2016-08-23T22:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/65166#M38</link>
      <description>&lt;P&gt;Dear &lt;SPAN&gt;erikskov&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thank you very much for the input and sorry for late response.&lt;/P&gt;&lt;P&gt;Can I please get PBIX with data and R code, which is not working for you in server? It worked for me on toy data sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;B. (&lt;A href="mailto:boefraty@microsoft.com" target="_self"&gt;boefraty@microsoft.com&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 12:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/65166#M38</guid>
      <dc:creator>boefraty</dc:creator>
      <dc:date>2016-09-04T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/70692#M51</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="10693" data-lia-user-login="wbob" class="lia-mention lia-mention-user"&gt;wbob﻿&lt;/a&gt;&amp;nbsp;- this seems an incomplete sample and perhaps why it is generating confusion. &amp;nbsp;I dont think that code alone can be used in PBI Desktop without a source datatset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please post your PBIX file?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 02:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/70692#M51</guid>
      <dc:creator>mike_honey</dc:creator>
      <dc:date>2016-09-22T02:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71883#M56</link>
      <description>&lt;P&gt;Hi, Thanks for sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with special charaters braking the visualisation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me what to do with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The R code is working when no special charaters present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the Error Message i get:&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;R script error.&lt;BR /&gt;Error in type.convert(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, :&lt;BR /&gt;invalid input '@MSEmpresasLatam @DiegoBek exactamente! Es la era de la inteligencia #AzureML #SQLEnterprise #PowerBI #IoT ðŸ˜&amp;#141;' in 'utf8towcs'&lt;BR /&gt;Calls: read.csv -&amp;gt; read.table -&amp;gt; type.convert&lt;BR /&gt;Execution halted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the R code i have:&lt;/P&gt;&lt;P&gt;library(tm)&lt;BR /&gt;library(SnowballC)&lt;BR /&gt;library(wordcloud)&lt;BR /&gt;dataset &amp;lt;-Corpus(VectorSource(dataset))&lt;BR /&gt;dataset &amp;lt;- tm_map(dataset, removePunctuation)&lt;BR /&gt;dataset &amp;lt;-tm_map(dataset, removeWords, c('powerbi','PowerBI',stopwords('english')))&lt;BR /&gt;dataset &amp;lt;-tm_map(dataset, stemDocument)&lt;BR /&gt;wordcloud(dataset, max.words = 100, random.order = FALSE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance if anyone could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kávási Mihály&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 09:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71883#M56</guid>
      <dc:creator>kavasimihaly</dc:creator>
      <dc:date>2016-09-26T09:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71925#M57</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Kávási,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It looks you are using the R Word Cloud, not the Power BI Custom Visual? &amp;nbsp;If that is the case then I suggest you re-post this e.g. to stackoverflow.com, tagged for R.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 10:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71925#M57</guid>
      <dc:creator>mike_honey</dc:creator>
      <dc:date>2016-09-26T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71970#M58</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the reason why i posted here because this is the R script showcase forum and this error is related to the R integration of PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kávási Mihály ( in English it is Mihály Kávási correctly :) will change from now)&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/71970#M58</guid>
      <dc:creator>kavasimihaly</dc:creator>
      <dc:date>2016-09-26T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/96023#M98</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice post :-)&lt;/P&gt;&lt;P&gt;Do you know how to make a word cloud out of a columns (the entire content) for example i have a colum with company names and number of cases?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that by altering the Dataset I cannot use the code again in Power BI ( I had to write colClasses = c("character", "numeric"),&amp;nbsp; to tell R that my dataset has 2 type of columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; `dataset` = read.csv('C:/Users/PatricioLobos/AppData/Local/Radio/REditorWrapper_8fe60428-ecc0-478f-ab77-56803f9407f4/input_df_227d85ab-962e-4701-b1ac-ff6e53817c56.csv', colClasses = c("character", "numeric"), check.names = FALSE, encoding = "UTF-8", blank.lines.skip = FALSE);&lt;BR /&gt;+ # Original Script. Please update your script content here and once completed copy below section back to the original editing window #&lt;BR /&gt;&amp;gt;require(wordcloud)&lt;BR /&gt;&amp;gt; require(RColorBrewer)&lt;BR /&gt;&amp;gt; pal2 &amp;lt;- brewer.pal(8, 'Dark2')&lt;BR /&gt;&amp;gt; plot(wordcloud(dataset$Kundenavn, dataset$`Nr. Cases`, scale = c(8, .4), min.freq = 5, max.words = Inf, random.order = FALSE, rot.per = .15, colors = pal2))&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 23:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/96023#M98</guid>
      <dc:creator>patoduck</dc:creator>
      <dc:date>2016-11-30T23:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/97619#M100</link>
      <description>&lt;PRE&gt;require(wordcloud)
require(RColorBrewer)

datain = as.data.frame(table(as.character(dataset[,2])))

pal2 &amp;lt;- brewer.pal(4,"Dark2")

wordcloud(datain[,1],datain$Freq, 
          scale=c(4,.3),
          min.freq=1, max.words=Inf, 
          random.order=FALSE, 
          rot.per=.15, 
          colors=pal2)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The dataset is 2 columns: "ID", "Term"&amp;nbsp;. If you have "Frequency" instead of&amp;nbsp;"ID"&amp;nbsp;no need to call "table" operator &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:48:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/97619#M100</guid>
      <dc:creator>boefraty</dc:creator>
      <dc:date>2016-12-12T15:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/301939#M232</link>
      <description>&lt;P&gt;I love the idea with a word cloud that you have more control over. However, when I open the pbix-file to try the visual I get the message "Can't display visuals", with the following details:&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;R script error.&lt;/P&gt;&lt;P&gt;Loading required package: NLP&lt;/P&gt;&lt;P&gt;Loading required package: methods&lt;/P&gt;&lt;P&gt;Loading required package: RColorBrewer&lt;/P&gt;&lt;P&gt;Error in strwidth(words[i], cex = size[i], ...) : invalid 'cex' value&lt;/P&gt;&lt;P&gt;Calls: wordcloud -&amp;gt; strwidth&lt;/P&gt;&lt;P&gt;In addition: Warning messages:&lt;/P&gt;&lt;P&gt;1: In max(freq) : no non-missing arguments to max; returning -Inf&lt;/P&gt;&lt;P&gt;2: In max(freq) : no non-missing arguments to max; returning -Inf&lt;/P&gt;&lt;P&gt;Execution halted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the packages installed. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 10:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/301939#M232</guid>
      <dc:creator>ToveHjelm</dc:creator>
      <dc:date>2017-11-13T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/303719#M233</link>
      <description>&lt;P&gt;I got the same error when working on my own word cloud. I solved it by adding the&amp;nbsp;&lt;/P&gt;&lt;P&gt;'require("package")' for all the packages used. In my case it worked after adding the require call, but the end of the script is slightly different than the example here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;require("tm")&lt;BR /&gt;require("SnowballC")&lt;BR /&gt;require("wordcloud")&lt;BR /&gt;require("RColorBrewer")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;library(tm)&lt;BR /&gt;library(SnowballC)&lt;BR /&gt;library(wordcloud)&lt;BR /&gt;library(RColorBrewer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Data&lt;BR /&gt;docs &amp;lt;- Corpus(VectorSource(dataset$Column1))&lt;/P&gt;&lt;P&gt;# Convert the text to lower case&lt;BR /&gt;docs &amp;lt;- tm_map(docs, content_transformer(tolower))&lt;BR /&gt;# Remove numbers&lt;BR /&gt;docs &amp;lt;- tm_map(docs, removeNumbers)&lt;BR /&gt;# Remove english common stopwords&lt;BR /&gt;#docs &amp;lt;- tm_map(docs, removeWords, stopwords("dutch"))&lt;BR /&gt;# Remove your own stop word&lt;BR /&gt;# specify your stopwords as a character vector&lt;BR /&gt;docs &amp;lt;- tm_map(docs, removeWords, c("het", "met", "ons", "dit", "hem", "als", "dat", "heb"))&lt;BR /&gt;# Remove punctuations&lt;BR /&gt;docs &amp;lt;- tm_map(docs, removePunctuation)&lt;BR /&gt;# Eliminate extra white spaces&lt;BR /&gt;#docs &amp;lt;- tm_map(docs, stripWhitespace)&lt;BR /&gt;# Text stemming&lt;BR /&gt;#docs &amp;lt;- tm_map(docs, stemDocument)&lt;BR /&gt;&lt;BR /&gt;#Build a term-document matrix&lt;BR /&gt;dtm &amp;lt;- TermDocumentMatrix(docs)&lt;BR /&gt;m &amp;lt;- as.matrix(dtm)&lt;BR /&gt;v &amp;lt;- sort(rowSums(m),decreasing=TRUE)&lt;BR /&gt;d &amp;lt;- data.frame(word = names(v),freq=v)&lt;BR /&gt;head(d, 10)&lt;/P&gt;&lt;P&gt;set.seed(1234)&lt;BR /&gt;wordcloud(words = d$word, freq = d$freq, min.freq = 1,&lt;BR /&gt;max.words=200, random.order=FALSE, rot.per=0.35,&lt;BR /&gt;colors=brewer.pal(8, "Dark2"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/303719#M233</guid>
      <dc:creator>Datamijn</dc:creator>
      <dc:date>2017-11-15T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/317526#M235</link>
      <description>&lt;P&gt;When I tried the original code, it worked with older versions of R, 3.2.3 but not newer versions of R, 3.3.1 and 3.4.2. The Corpus construction was returning only numbers which were then stripped out by the rest of the code causing problems. So, I hacked together a variation of the original code based upon comments and have a working version here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require(tm)
require(wordcloud)
require(RColorBrewer)

datain = as.data.frame(table(as.character(dataset[,1])))
words &amp;lt;- Corpus(VectorSource(dataset$text))

words &amp;lt;- tm_map(words, stripWhitespace)
words &amp;lt;- tm_map(words, content_transformer(tolower))
words &amp;lt;- tm_map(words, removeNumbers)
words &amp;lt;- tm_map(words, removePunctuation)
words &amp;lt;- tm_map(words, removeWords, stopwords("english"))
words &amp;lt;- tm_map(words, stemDocument)

wordcloud(words, scale=c(5,0.75), max.words=50, random.order=FALSE, rot.per=0.35, use.r.layout=FALSE, colors=brewer.pal(8, "Dark2"))&lt;/PRE&gt;&lt;P&gt;The main change is the construction of the Corpus, VectorSource(dataset) becomes VectorSource(dataset$text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is based upon the original PBIX file included in the original post.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/317526#M235</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2017-12-05T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/322611#M239</link>
      <description>&lt;P&gt;Thanks a lot, we will review the PBIX. Excpecially because the R-engine is going to be upgraded in service soon&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 08:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/322611#M239</guid>
      <dc:creator>boefraty</dc:creator>
      <dc:date>2017-12-13T08:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wordcloud with r</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/845440#M335</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pretty much did the same exact steps to generate a word cloud visual in R , however i'm still getting&amp;nbsp; the same error.&lt;/P&gt;&lt;P&gt;The script runs fine on my machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Paste or type your script code here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"tm"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"SnowballC"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"wordcloud"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"wordcloud2"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"RColorBrewer"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;library&lt;/SPAN&gt;&lt;SPAN&gt;(tm)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;library&lt;/SPAN&gt;&lt;SPAN&gt;(SnowballC)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;library&lt;/SPAN&gt;&lt;SPAN&gt;(wordcloud)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;library&lt;/SPAN&gt;&lt;SPAN&gt;(RColorBrewer)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;library&lt;/SPAN&gt;&lt;SPAN&gt;(wordcloud2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;#Data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- Corpus(VectorSource(dataset$UserFeedback))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;##Data Cleaning and Wrangling&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs, PlainTextDocument)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,tolower)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,removeNumbers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,removeWords,c(stopwords(&lt;/SPAN&gt;&lt;SPAN&gt;"english"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"expert"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"just"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"asdfasdf"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"asdf"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"session"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"slide"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"also"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"slides"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"asked"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"test"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"deck"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"around"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"took"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"look"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"might"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"make"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"many"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"give"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"keep"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"adding"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"going"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"go"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"making"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"really"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"job"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"ones"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"even"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"see"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"made"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"bit"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,removePunctuation)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,stripWhitespace)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;docs &amp;lt;- tm_map(docs,stemDocument)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;tdm&amp;lt;-TermDocumentMatrix(docs)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;m &amp;lt;-as.&lt;/SPAN&gt;&lt;SPAN&gt;matrix&lt;/SPAN&gt;&lt;SPAN&gt;(tdm)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;v &amp;lt;-sort(rowSums(m),decreasing = &lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Docs2 &amp;lt;-data.frame(word=names(v),freq =v)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;head(Docs2, &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;wordcloud2(Docs2, color = &lt;/SPAN&gt;&lt;SPAN&gt;"random-dark"&lt;/SPAN&gt;&lt;SPAN&gt;,size = &lt;/SPAN&gt;&lt;SPAN&gt;0.5&lt;/SPAN&gt;&lt;SPAN&gt;, shape = &lt;/SPAN&gt;&lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;, backgroundColor = &lt;/SPAN&gt;&lt;SPAN&gt;"black"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts what&amp;nbsp; could be the issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Nov 2019 23:54:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Wordcloud-with-r/m-p/845440#M335</guid>
      <dc:creator>shadho</dc:creator>
      <dc:date>2019-11-13T23:54:50Z</dc:date>
    </item>
  </channel>
</rss>

