<html><head></head><body><div style="font-family:courier new, courier, monaco, monospace, sans-serif;font-size:16px;"><div style="font-family: courier, monaco, monospace, sans-serif; font-size: 16px;"><div style="font-family: courier, monaco, monospace, sans-serif; font-size: 16px;"><div><div><pre class="ydpf61dca75lang-r ydpf61dca75prettyprint ydpf61dca75prettyprinted"><code><span class="ydpf61dca75pln">Ao ler um arquivo tive os seguintes erros:</span></code></pre></div><div><pre class="ydpf61dca75lang-r ydpf61dca75prettyprint ydpf61dca75prettyprinted"><code><span class="ydpf61dca75pln"><br></span></code></pre></div><div><pre class="ydpf61dca75lang-r ydpf61dca75prettyprint ydpf61dca75prettyprinted"><code><span class="ydpf61dca75pln"><pre class="ydpd0fff2alang-r ydpd0fff2aprettyprint ydpd0fff2aprettyprinted"><code><span class="ydpd0fff2apln">A </span><span class="ydpd0fff2apun"><-</span><span class="ydpd0fff2apln"> read.csv</span><span class="ydpd0fff2apun">(</span><span class="ydpd0fff2astr">"tel.csv"</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> sep </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> </span><span class="ydpd0fff2astr">","</span><span class="ydpd0fff2apun">)</span><span class="ydpd0fff2apln">
Error </span><span class="ydpd0fff2akwd">in</span><span class="ydpd0fff2apln"> read.table</span><span class="ydpd0fff2apun">(</span><span class="ydpd0fff2apln">file </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> file</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> header </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> header</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> sep </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> sep</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> quote </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> quote</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> </span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln">
empty beginning of file
In addition</span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln"> Warning messages</span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln">
</span><span class="ydpd0fff2alit">1</span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln"> In read.table</span><span class="ydpd0fff2apun">(</span><span class="ydpd0fff2apln">file </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> file</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> header </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> header</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> sep </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> sep</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> quote </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> quote</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> </span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln">
invalid input found on input connection </span><span class="ydpd0fff2astr">'tel.csv'</span><span class="ydpd0fff2apln">
</span><span class="ydpd0fff2alit">2</span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln"> In read.table</span><span class="ydpd0fff2apun">(</span><span class="ydpd0fff2apln">file </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> file</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> header </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> header</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> sep </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> sep</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> quote </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> quote</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> </span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln">
line </span><span class="ydpd0fff2alit">1</span><span class="ydpd0fff2apln"> appears to contain embedded nulls
</span><span class="ydpd0fff2alit">3</span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln"> In read.table</span><span class="ydpd0fff2apun">(</span><span class="ydpd0fff2apln">file </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> file</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> header </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> header</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> sep </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> sep</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> quote </span><span class="ydpd0fff2apun">=</span><span class="ydpd0fff2apln"> quote</span><span class="ydpd0fff2apun">,</span><span class="ydpd0fff2apln"> </span><span class="ydpd0fff2apun">:</span><span class="ydpd0fff2apln">
incomplete final line found by readTableHeader on </span><span class="ydpd0fff2astr">'tel.csv'</span></code></pre><br></span></code></pre></div><div><pre class="ydpf61dca75lang-r ydpf61dca75prettyprint ydpf61dca75prettyprinted"><code><span class="ydpf61dca75pln">Com utf-16 resolveu<br></span></code></pre></div><pre class="ydpfd484796lang-r ydpfd484796prettyprint ydpfd484796prettyprinted"><code><span class="ydpfd484796pln">A </span><span class="ydpfd484796pun"><-</span><span class="ydpfd484796pln"> read.csv</span><span class="ydpfd484796pun">(</span><span class="ydpfd484796str">"tel.csv"</span><span class="ydpfd484796pun">,</span><span class="ydpfd484796pln"> sep </span><span class="ydpfd484796pun">=</span><span class="ydpfd484796pln"> </span><span class="ydpfd484796str">","</span><span class="ydpfd484796pun">,</span><span class="ydpfd484796pln">
fileEncoding</span><span class="ydpfd484796pun">=</span><span class="ydpfd484796str">"utf-16"</span><span class="ydpfd484796pun">)</span></code></pre><br><div class="ydpe26dbeb9signature"><div><font style="font-family:tahoma, 'new york', times, serif;" size="1"><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_65" style="font-family:verdana, helvetica, sans-serif;font-weight:bold;">Rafael Tieppo</span><br style="font-family:verdana, helvetica, sans-serif;"><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;">State University of Mato Grosso - </span></font><font style="font-family:tahoma, 'new york', times, serif;" size="1"><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;"><font style="font-family:tahoma, 'new york', times, serif;" size="1"><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;">Department of </span></font>Agricultural Engineering <br></span><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_73" style="font-family:verdana, helvetica, sans-serif;"><span style="font-weight:bold;">site</span>:</span><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_75" style="font-family:verdana, helvetica, sans-serif;"> <a href="https://rafatieppo.github.io/" rel="nofollow" target="_blank">https://rafatieppo.github.io</a> </span><span class="ydpe26dbeb9yui_3_7_2_18_1354538511367_76" style="font-family:verdana, helvetica, sans-serif;"><b>blog</b>: </span></font><a href="https://fuidebicicleta.wordpress.com/" style="font-family:verdana, helvetica, sans-serif;font-size:x-small;" rel="nofollow" target="_blank">https://fuidebicicleta.wordpress.com</a></div><div><span style="font-family:verdana, helvetica, sans-serif;font-size:x-small;">"Evite o desperdício: antes de imprimir pense na sua responsabilidade com o ambiente". <br></span></div></div></div>
<div><br></div><div><br></div>
</div></div><div id="ydp82234d34yahoo_quoted_8672052430" class="ydp82234d34yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, February 9, 2018, 9:26:34 AM GMT-3, <r-br-request@listas.c3sl.ufpr.br> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Enviar submissões para a lista de discussão R-br para <br></div><div dir="ltr"> <a href="mailto:r-br@listas.c3sl.ufpr.br" rel="nofollow" target="_blank">r-br@listas.c3sl.ufpr.br</a><br></div><div dir="ltr"><br></div><div dir="ltr">Para se cadastrar ou descadastrar via WWW, visite o endereço<br></div><div dir="ltr"> <a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="nofollow" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br></div><div dir="ltr">ou, via email, envie uma mensagem com a palavra 'help' no assunto ou<br></div><div dir="ltr">corpo da mensagem para <br></div><div dir="ltr"> <a href="mailto:r-br-request@listas.c3sl.ufpr.br" rel="nofollow" target="_blank">r-br-request@listas.c3sl.ufpr.br</a><br></div><div dir="ltr"><br></div><div dir="ltr">Você poderá entrar em contato com a pessoa que gerencia a lista pelo<br></div><div dir="ltr">endereço<br></div><div dir="ltr"> <a href="mailto:r-br-owner@listas.c3sl.ufpr.br" rel="nofollow" target="_blank">r-br-owner@listas.c3sl.ufpr.br</a><br></div><div dir="ltr"><br></div><div dir="ltr">Quando responder, por favor edite sua linha Assunto assim ela será<br></div><div dir="ltr">mais específica que "Re: Contents of R-br digest..."<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Tópicos de Hoje:<br></div><div dir="ltr"><br></div><div dir="ltr"> 1. [WordCloud] Problema com encoding (Max)<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">----------------------------------------------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 1<br></div><div dir="ltr">Date: Tue, 26 Sep 2017 22:31:21 -0300<br></div><div dir="ltr">From: Max <<a href="mailto:max.lara@gmail.com" rel="nofollow" target="_blank">max.lara@gmail.com</a>><br></div><div dir="ltr">To: <a href="mailto:r-br@listas.c3sl.ufpr.br" rel="nofollow" target="_blank">r-br@listas.c3sl.ufpr.br</a><br></div><div dir="ltr">Subject: [R-br] [WordCloud] Problema com encoding<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr"> <CAK9SNW2=9j=<a href="mailto:pc3fYzFnM3ooYhN1eORufRONu-DpqN6jfR-ORhw@mail.gmail.com" rel="nofollow" target="_blank">pc3fYzFnM3ooYhN1eORufRONu-DpqN6jfR-ORhw@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Pessoal, boa noite!<br></div><div dir="ltr"><br></div><div dir="ltr">Com base em um exemplo pego na internet, tentei fazer uma nuvem de palavras<br></div><div dir="ltr">de um arquivo notepad (peguei uma pequena matéria na internet e salvei, em<br></div><div dir="ltr">.txt, com o nome SaoBento).<br></div><div dir="ltr">O código tem funcionado quase corretamente. O problema é que eu não tenho<br></div><div dir="ltr">tido sucesso em corrigir o *encoding* do texto.<br></div><div dir="ltr"><br></div><div dir="ltr">- Tentei usar encoding = "UTF-8" na linha do readlines, mas sem sucesso.<br></div><div dir="ltr">- Também tentei usar enc2native() na última linha do passo 7, mas ocorre<br></div><div dir="ltr">erro argument is not a character vector.<br></div><div dir="ltr">- Salvei o arquivo SaoBento.txt no Notepad++, usando UTF-8 e, também, a<br></div><div dir="ltr">nuvem final acusou problemas de *encoding*.<br></div><div dir="ltr">- Deixei o arquivo SaoBento.txt salvo sozinho em uma pasta e, também, não<br></div><div dir="ltr">tive sucesso em acertar o *encoding*.<br></div><div dir="ltr"><br></div><div dir="ltr">Sendo assim, gostaria de saber se alguém poderia fornecer uma dica de como<br></div><div dir="ltr">posso driblar esse problema.<br></div><div dir="ltr"><br></div><div dir="ltr">Agradeço pela atenção.<br></div><div dir="ltr"><br></div><div dir="ltr">Saudações,<br></div>****************************************<br></div>
</div>
</div></div></body></html>