Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
| dicas:r-compila [2009/12/14 23:48] – paulojus | dicas:r-compila [2012/06/27 11:11] (atual) – paulojus | ||
|---|---|---|---|
| Linha 6: | Linha 6: | ||
| Há dois tipos básicos de instalação: | Há dois tipos básicos de instalação: | ||
| - | - Instalando a partir de arquivos binários | + | - Instalando a partir de arquivos binários |
| - compilar a partir do arquivo fonte do R | - compilar a partir do arquivo fonte do R | ||
| Linha 21: | Linha 21: | ||
| $ unzip rpatch.zip </ | $ unzip rpatch.zip </ | ||
| - tornar o arquivo executável < | - tornar o arquivo executável < | ||
| - | $ chmod Rpatch.sh </ | + | $ chmod +x Rpatch.sh </ |
| - se necessário editar a segunda linha o arquivo para versão desejada < | - se necessário editar a segunda linha o arquivo para versão desejada < | ||
| - | Rver=2-10 </ | + | Rver=2-15 </ |
| - ver as opções com < | - ver as opções com < | ||
| $ sudo ./Rpatch.sh --help</ | $ sudo ./Rpatch.sh --help</ | ||
| - rodar com as opções desejadas, por exemplo, < | - rodar com as opções desejadas, por exemplo, < | ||
| - | $ sudo ./Rpatch --deps --install </ | + | $ sudo ./Rpatch.sh --deps --install </ |
| Embora não exigido, também útil instalar outros pacotes do LINUX **antes** de compilar o R:< | Embora não exigido, também útil instalar outros pacotes do LINUX **antes** de compilar o R:< | ||
| - | aptitude install | + | aptitude install |
| - | aw latex2rtf tex4ht recode gimp graphicsmagick imagemagick | + | latexdraw |
| - | aptitude install aspell-pt-br aspell-en jython jython-doc | + | aptitude install aspell-pt-br aspell-en jython jython-doc maxima maxima-doc maxima-share src2tex |
| - | xima xmaxima | + | wxmaxima |
| - | hypertex axiom-hypertex-data axiom-test axiom-tex libaxiom-java python-axiom python-sympy ps2eps lilypond | + | open-axiom-hypertex |
| - | ce writer2latex openoffice.org-writer2latex | + | grace writer2latex openoffice.org-writer2latex |
| - | ghostscript sgmltools-lite noweb dvipost chktex graphviz unrtf | + | ghostscript sgmltools-lite noweb dvipost chktex graphviz unrtf libxml2-dev |
| + | |||
| + | aptitude install freeglut3 freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libice-dev \ | ||
| + | libsm-dev libx11-dev libxau-dev libxdmcp-dev libxext-dev libxt-dev \ | ||
| + | mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev \ | ||
| + | x11proto-xext-dev xtrans-dev libtiff-opengl ivtools-dev tdl | ||
| </ | </ | ||
| + | |||
| + | == Sobre compilação e pacotes == | ||
| + | |||
| + | R-2.14.0 (and higher) comes with Luke Tierney' | ||
| + | a factor 5, although if your functions are just calls to compiled C code the speedup will be much | ||
| + | smaller. By default, only the required packages are byte-compiled. But if you set (in your bash profile) | ||
| + | |||
| + | export R_COMPILE_PKGS=1 | ||
| + | |||
| + | then all packages will byte-compile when installed. If you set | ||
| + | |||
| + | export R_ENABLE_JIT=3 | ||
| + | |||
| + | then all functions you define in your interactive or batch session will be byte-compiled the first time they | ||
| + | are entered into the workspace (and the same is true for all loops). \\ | ||
| + | It should be noted that some contributed packages have namespace problems when byte-compiled. | ||
| + | |||
| + | R-2.15.0 (i.e. R-devel) has parallel versions of Map() and mapply(). parallel makes fork or socket | ||
| + | cluster and has parallel random number generation. MPI clusters are handled (for now) by passing the | ||
| + | information to the snow package. | ||