<div dir="ltr">Geralmente a escrita no diretório raiz de máquinas Windows é "proibida" para usuários comuns (ñ admins).<div><br></div><div>Coloque o caminho de uma pasta ("diretório") que seguramente tenhas acesso, como por exemplo a sua pasta Documentos e tente de novo.</div><div><br></div><div>No RStudio há um meio de escolher o caminho via a GUI para salvar o arquivo, simplificando essa tarefa.</div><div><br></div><div>HTH</div><div><br></div><div>--</div><div>Cesar Rabak</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 11, 2022 at 2:58 PM Marília Teresinha por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div><div dir="ltr"><div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">Pessoal, boa tarde. Não estou conseguindo exportar um gráfico como imagem no RStudio. Aparece a seguinte mensagem:</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">"TIFFOpen: C://Figura4.tiff: Cannot open."</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">O mesmo acontece quando tento pelo comando tiff:</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">tiff("Figura 4.tiff", units="in", width=10, height=5, res=150)</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">dev.off()</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">Aparece a mensagem:</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">"Warning message:</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">In dev.off() :</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">  unable to open TIFF file 'C://Figura4.tiff'</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap"><br></div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">O mesmo vale para qualquer formato de imagem (tiff, jpeg, png...).</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">Esse problema começou depois da instalação da versão atual do RStudio. Alguém sabe o está acontecendo e alguma dica de como resolver?</div><div style="font-family:"Segoe UI Historic","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(5,5,5);font-size:15px;white-space:pre-wrap">Obrigada.</div></div><br></div><div><br></div><div><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px"><div><p><font color="#5b8828"><b><span style="font-size:small">Marilia T. de S. Machado</span><span style="font-size:medium">, </span><span style="font-size:small">Dra.</span></b></font></p></div><div><div><span style="font-size:small"><font color="#4c76a2" style="background-color:inherit">Pesquisadora Colaboradora, Centro de Desenvolvimento Sustentável - CDS/UnB.</font></span></div><div><span style="font-size:small"><font color="#4c76a2" style="background-color:inherit">Universidade de Brasília, Campus Universitário Darcy Ribeiro.</font></span></div><div><span style="font-size:small"><font color="#4c76a2" style="background-color:inherit"><b><br></b></font></span></div><div><span style="font-size:small"><span style="font-family:Tahoma,Geneva,sans-serif;line-height:15px;background-color:rgb(255,255,255)">CV Lattes:</span><span style="color:rgb(50,108,153);font-family:Tahoma,Geneva,sans-serif;line-height:15px;background-color:rgb(255,255,255)"> <a href="http://lattes.cnpq.br/4190451945124694" target="_blank">http://lattes.cnpq.br/4190451945124694</a></span></span></div></div></div></div></div></div></div>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div>