<div dir="ltr"><div class="gmail_default"><div style="font-family:arial,sans-serif;font-size:12.8px"><div>Bom dia pessoal!</div><div><br></div><div>Estou utilizando o windows. <br></div><div><br></div>Segue o script:</div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">library(bipartite)</span></div><div><span style="font-size:12.8px">namostras=1000</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">exemplo=matrix(1/100,10,10)</span></div><div><span style="font-size:12.8px">exemplo<-mgen(exemplo, n = 10, rep.cell=F) </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">for (n in 1:namostras){</span></div><div><span style="font-size:12.8px"> NODF=nested(exemplo,method="<wbr>NODF2",rescale=F)</span><br></div><div><span style="font-size:12.8px"> NODFarr=round(NODF,digits=3) </span><span style="font-size:12.8px"> <wbr> </span></div><div><span style="font-size:12.8px"> Modular=computeModules(<wbr>exemplo)</span></div><div><span style="font-size:12.8px"> Modularidade=slot(Modular,"<wbr>likelihood")</span></div><div><span style="font-size:12.8px"> }</span></div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div></div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px">ERRO:</div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px"><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 35.4pt;font-family:"arial narrow",sans-serif;font-size:small;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In addition: Warning </span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 35.4pt;font-family:"arial narrow",sans-serif;font-size:small;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">message: In file(file, ifelse(append, "a", "w")) : cannot open file 'web-1-1.pairs': Permission denied</span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 35.4pt;font-family:"arial narrow",sans-serif;font-size:small;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"><br></span></p></div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px">Muito obrigada!</div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div></div><div class="gmail_extra"><div><div class="m_-8581117266893533464gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:"arial narrow",sans-serif;font-size:large">Elvira D'Bastiani</span><br></div><div><font face="arial narrow, sans-serif" color="#000000"><font size="2">Mestranda em Ecologia e Conservação</font></font></div><div><font face="arial narrow, sans-serif" color="#000000" size="2">Laboratório de Ecologia e Evolução de Interações (Leei)</font></div><div><font face="arial narrow, sans-serif" color="#000000" size="2">Universidade Federal do Paraná - UFPR<br></font><font face="arial narrow, sans-serif" color="#000000" size="2">Curitiba, Paraná, Brasil <br></font><font face="arial narrow, sans-serif" color="#000000" size="2"><br></font></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">Em 28 de março de 2017 15:40, Augusto Ribas <span dir="ltr"><<a href="mailto:ribas.aca@gmail.com" target="_blank">ribas.aca@gmail.com</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Você está usando windows ou linux?<br></div>Se for o windows, eu acho que os arquivos estão sendo gerados dentro da pasta do R, que fica na pasta onde ficam os programas, e la é protegido, as vezes erros parecidos acontecem quando a gente tenta usar algo que modifica arquivos, como o Rprofile automaticamente.<br><br></div>Mas você precisa dar mais informações, como qual função ta usando, um script mínimo reproduzível para outras pessoas verem o mesmo erro etc, não da para ajudar muito somente com a informação que vc ta dando<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8581117266893533464h5">Em 26 de março de 2017 18:58, Elvira De Bastiani via R-br <span dir="ltr"><<a href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>></span> escreveu:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8581117266893533464h5"><div dir="ltr"><div style="font-family:"arial narrow",sans-serif;font-size:small"><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Boa noite pessoal!</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Sou iniciante no programa R e estou utilizando o pacote Bipartite para minhas análises.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Eu estou tentando rodar um modelo com 1.000 amostras de redes de interação que são criadas aleatoriamente a partir de um banco de dados.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">E agora durante a análise, começou a aparecer o seguinte erro:</span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 35.4pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In addition: Warning </span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 35.4pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">message: In file(file, ifelse(append, "a", "w")) : cannot open file 'web-1-1.pairs': Permission denied</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Aparentemente, durante a análise é gerado um arquivo que neste caso é o 'web-1-1.pairs', e o mesmo tem acesso negado, não finalizando a análise para as 1.000 redes de interação.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Pelo que andei pesquisando, este erro pode acontecer quando:</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Tem um arquivo aberto em outro programa, como o Excel, enquanto tenta gravá-lo..ou se o diretório de trabalho não tenha acesso para gravação a esse diretório.. mas acredito que isso não seja o meu caso.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:arial,sans-serif">Alguém conhece ou já teve esse erro, e poderia compartilhar como solucioná-lo ? </span></p><p class="MsoNormal"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal"><span style="font-family:arial,sans-serif"> </span></p><p class="MsoNormal"><span style="font-family:arial,sans-serif">Muito obrigada</span></p><p class="MsoNormal"><span style="font-family:arial,sans-serif"><br></span></p></div><div><div class="m_-8581117266893533464m_6834383296036480737m_-5899393050635296720gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:"arial narrow",sans-serif;font-size:large">Elvira D'Bastiani</span><br></div><div><font color="#000000" face="arial narrow, sans-serif"><font size="2">Mestranda em Ecologia e Conservação</font></font></div><div><font color="#000000" size="2" face="arial narrow, sans-serif">Laboratório de Ecologia e Evolução de Interações (Leei)</font></div><div><font color="#000000" size="2" face="arial narrow, sans-serif">Universidade Federal do Paraná - UFPR<br></font><font color="#000000" size="2" face="arial narrow, sans-serif">Curitiba, Paraná, Brasil <br></font><font color="#000000" size="2" face="arial narrow, sans-serif"><br></font></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br></div></div>______________________________<wbr>_________________<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<wbr>-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-g<wbr>uia</a>) e forneça código mínimo reproduzível.<span class="m_-8581117266893533464HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="m_-8581117266893533464HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_-8581117266893533464m_6834383296036480737gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Grato<br>Augusto C. A. Ribas</div>
<div> </div>
<div>Site Pessoal: <a href="http://recologia.com.br/" target="_blank">http://recologia.com.br/</a><a href="http://augustoribas.heliohost.org" target="_blank"></a></div><div>Github: <a href="https://github.com/Squiercg" target="_blank">https://github.com/Squ<wbr>iercg</a></div>
<div>Lattes: <a href="http://lattes.cnpq.br/7355685961127056" target="_blank">http://lattes.cnpq.br/73556859<wbr>61127056</a><br></div></div></div>
</font></span></div>
</blockquote></div><br></div></div>