O que significa
- Instalar…
- Anexar…
- Carregar…
… um pacote?
17 março, 2021
O que significa
… um pacote?
library()
ou require()
> # Caminho de busca > search()
## [1] ".GlobalEnv" "package:magrittr" "package:stats" ## [4] "package:graphics" "package:grDevices" "package:utils" ## [7] "package:datasets" "package:methods" "Autoloads" ## [10] "package:base"
> # Carregando e anexando um pacote > library(midrangeMCP) > > # Verificando novamente o caminho de busca > search()
## [1] ".GlobalEnv" "package:midrangeMCP" "package:magrittr" ## [4] "package:stats" "package:graphics" "package:grDevices" ## [7] "package:utils" "package:datasets" "package:methods" ## [10] "Autoloads" "package:base"
> # Chamando uma funcao do pacote > guimidrangeMCP()
::
> # Caminho de busca > search()
## [1] ".GlobalEnv" "package:magrittr" "package:stats" ## [4] "package:graphics" "package:grDevices" "package:utils" ## [7] "package:datasets" "package:methods" "Autoloads" ## [10] "package:base"
> # Carregando e chamando uma função de um pacote > midrangeMCP::MRwrite(results, extension = "latex")
## Table in latex of results of the MGM test ## ## % latex table generated in R 4.0.3 by xtable 1.8-4 package ## % Wed Mar 17 09:37:51 2021 ## \begin{table}[ht] ## \centering ## \begin{tabular}{lrl} ## \hline ## trt & Means & Groups \\ ## \hline ## E & 140.30 & g1 \\ ## D & 127.97 & g2 \\ ## C & 117.62 & g3 \\ ## B & 105.95 & g4 \\ ## A & 100.87 & g4 \\ ## \hline ## \end{tabular} ## \end{table} ## ## ## Table in latex of results of descriptive statistics ## ## % latex table generated in R 4.0.3 by xtable 1.8-4 package ## % Wed Mar 17 09:37:51 2021 ## \begin{table}[ht] ## \centering ## \begin{tabular}{lrrrrr} ## \hline ## trt & Means & std & r & Min & Max \\ ## \hline ## A & 100.87 & 3.40 & 4 & 97.64 & 105.66 \\ ## B & 105.95 & 10.33 & 4 & 99.11 & 121.29 \\ ## C & 117.62 & 9.02 & 4 & 104.43 & 124.37 \\ ## D & 127.97 & 4.74 & 4 & 123.19 & 134.16 \\ ## E & 140.30 & 11.42 & 4 & 127.31 & 151.53 \\ ## \hline ## \end{tabular} ## \end{table} ## ## See yours tables in Console ## Format: latex
> # Verificando novamente o caminho de busca > search()
## [1] ".GlobalEnv" "package:magrittr" "package:stats" ## [4] "package:graphics" "package:grDevices" "package:utils" ## [7] "package:datasets" "package:methods" "Autoloads" ## [10] "package:base"