<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="font-size: 12pt;">Olá a todos,<br>
</span><br>
Estou tentando instalar o RNetCDF no R do qual uso, num ubunutu 12.04 no RStudio, porém não consigo instalar o pacote aparecendo o seguinte erro:<br>
<br>
#######<br>
<br>
</p>
<pre tabindex="0" class="GCWXI2KCJKB" id="rstudio_console_output" style="font-family: "Ubuntu Mono"; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text; line-height: 16px; font-size: 10.4pt !important; white-space: pre-wrap !important;"><span class="GCWXI2KCPKB ace_keyword" style="color: blue; white-space: pre; -webkit-user-select: text;">> </span><span class="GCWXI2KCPJB ace_keyword" style="color: blue;">install.packages("RNetCDF")
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Installing package into ‘/home/notemaster/R/i686-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">--2016-10-11 17:49:52--  https://cran.rstudio.com/src/contrib/RNetCDF_1.8-2.tar.gz
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Resolvendo cran.rstudio.com (cran.rstudio.com)... </span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">54.192.56.107
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Conectando-se a cran.rstudio.com (cran.rstudio.com)|54.192.56.107|:443... </span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">conectado.
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">A requisição HTTP foi enviada, aguardando resposta... </span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">200 OK
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Tamanho: 95693 (93K) [application/x-gzip]
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Salvando em: “/tmp/Rtmpbh1Jqr/downloaded_packages/RNetCDF_1.8-2.tar.gz”
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">
     0K ........</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">.. ......</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">.... ........</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">.. ..</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">........ ........</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">.. 53%</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);"> 68,7K 1s
    50K ......</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">.... ...</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">....... .</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">........</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">. .......</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">... ...       100% 50,2K=1,6s

</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">2016-10-11 17:49:54 (58,7 KB/s) - “/tmp/Rtmpbh1Jqr/downloaded_packages/RNetCDF_1.8-2.tar.gz” salvo [95693/95693]

</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">* installing *source* package ‘RNetCDF’ ...
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">** package ‘RNetCDF’ successfully unpacked and MD5 sums checked
</span>checking for nc-config... yes
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking netcdf linker flags... -L/usr/lib -lnetcdf
checking netcdf pre-processor and compiler flags... -I/usr/include -DgFortran
checking for library containing XML_StopParser... no
checking for library containing utFree... no
checking for library containing utScan... no
<span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">configure: error: "unable to use udunits2 or udunits"
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">ERROR: configuration failed for package ‘RNetCDF’
* removing ‘/home/notemaster/R/i686-pc-linux-gnu-library/3.0/RNetCDF’
</span>Warning in install.packages :
  installation of package ‘RNetCDF’ had non-zero exit status

The downloaded source packages are in
        ‘/tmp/Rtmpbh1Jqr/downloaded_packages’
<span class="GCWXI2KCPKB ace_keyword" style="color: blue; white-space: pre; -webkit-user-select: text;">> </span><span class="GCWXI2KCPJB ace_keyword" style="color: blue;">library(RNetCDF)
</span><span class="GCWXI2KCDKB  ace_constant" style="color: rgb(197, 6, 11);">Erro em library(RNetCDF) : there is no package called ‘RNetCDF’</span></pre>
<br>
<p></p>
<p>####################</p>
<p><br>
</p>
<p><span style="font-size: 12pt;">Tentei usar o pacote netcdf, mas não consegui devido ao pacote ter sido descontinuado. Espero que alguém possa me ajudar, pois sou novo no uso de netcdf no R.<br>
</span><br>
Abraços a todos.</p>
<p><br>
</p>
<div id="Signature">Paulo Henrique de A. S. Pimenta.
<div><br>
</div>
<div>Graduando em Meteorologia (Bacharelado) - IAG/USP.<br>
Fone: +5511981318435.</div>
</div>
</div>
</body>
</html>