-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9773b15
commit f305b3a
Showing
26 changed files
with
1,903 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Configurando o ambiente local com o RStudio | ||
|
||
Para seguir o passo a passo utilizando o RStudio, é necessário que você tenha instalado o R e o RStudio Desktop no seu computador. Caso você não tenha instalado, você pode fazer download em: <https://posit.co/download/rstudio-desktop/> | ||
|
||
|
||
## Conectando o RStudio e o GitHub | ||
|
||
O pacote usethis será muito útil nesta etapa. Portanto, instale-o e carregue-o: | ||
|
||
```{r} | ||
#| eval: false | ||
#| include: true | ||
install.packages("usethis") | ||
library(usethis) | ||
``` | ||
|
||
Se apresente para o Git, utilizando a função `use_git_config()`: | ||
|
||
```{r} | ||
#| eval: false | ||
#| include: true | ||
usethis::use_git_config( | ||
# seu nome | ||
user.name = "Carol Denvers", | ||
# o email que você usa na sua conta do GitHub | ||
user.email = "awesomecaptainmarvel@gmail.com" | ||
) | ||
``` | ||
|
||
|
||
Crie um GitHub PAT Token (similar à uma senha) utilizando a função `create_github_token()`. | ||
|
||
```{r} | ||
#| eval: false | ||
#| #| include: true | ||
usethis::create_github_token() | ||
``` | ||
|
||
Nessa etapa, uma janela do navegador será aberta para você fazer login na sua conta do GitHub e criar o token. Não é necessário alterar as configurações, mas recomendamos nomear o token, e escolher um tempo para que ele expire. | ||
|
||
|
||
![Página para criar um GitHub Token](images/create-github-token.png){fig-alt="Captura de tela: Página para criar um GitHub Token" fig-align="center" width="95%"} | ||
|
||
|
||
|
||
|
||
Clique em "Generate Token" e copie o token gerado: | ||
|
||
![Página que mostra o token gerado](images/copiar-token-gerado.png){fig-alt="Captura de tela: Página que mostra o token gerado" fig-align="center" width="95%"} | ||
|
||
Volte para o RStudio. Utilize a função `gitcreds::gitcreds_set()` para armazenar o seu novo token, colando o token gerado quando for solicitado. | ||
|
||
|
||
```{r} | ||
#| eval: false | ||
#| #| include: true | ||
gitcreds::gitcreds_set() | ||
``` | ||
|
||
Reinicie a sua sessão do RStudio (o atalho `CTRL + SHIFT + F10` pode ser útil, ou clique no menu superior em: Session -> Restart R). | ||
|
||
Utilize a função `usethis::git_sitrep()` para verificar se o seu nome, email e PAT estão configurados corretamente. | ||
|
||
|
||
```{r} | ||
#| eval: false | ||
usethis::git_sitrep() | ||
#> Git config (global) | ||
#> ● Name: 'SEU NOME DEVE APARECER AQUI' | ||
#> ● Email: 'SEU EMAIL DEVE APARECER AQUI' | ||
#> GitHub | ||
#> ● Default GitHub host: 'https://github.com' | ||
#> ● Personal access token for 'https://github.com': '<discovered>' | ||
#> ● GitHub user: 'SEU NOME DE USUÁRIO(A) DEVE APARECER AQUI' | ||
#> ● Token scopes: 'gist, repo, user, workflow' | ||
#> ● Email(s): 'SEU EMAIL DEVE APARECER AQUI' | ||
``` | ||
|
||
O mais importante é verificar se aparece: `Personal access token for 'https://github.com': '<discovered>'`. Caso não esteja, verifique se você copiou o token corretamente, e se você reiniciou a sessão do RStudio. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
toc-title-document: "Índice" | ||
toc-title-website: "Nesta página" | ||
|
||
related-formats-title: "Outros formatos" | ||
related-notebooks-title: "Notebooks" | ||
source-notebooks-prefix: "Fonte" | ||
|
||
section-title-abstract: "Resumo" | ||
section-title-appendices: "Apêndices" | ||
section-title-footnotes: "Notas de rodapé" | ||
section-title-references: "Referências" | ||
section-title-reuse: "Reuso" | ||
section-title-citation: "Citação" | ||
|
||
appendix-attribution-bibtex: "BibTeX" | ||
appendix-attribution-cite-as: "Por favor, cite este trabalho como:" | ||
|
||
title-block-author-single: "Autoria" | ||
title-block-author-plural: "Autores" | ||
title-block-affiliation-single: "Afiliação" | ||
title-block-affiliation-plural: "Afiliações" | ||
title-block-published: "Data de Publicação" | ||
|
||
callout-tip-caption: "Dica" | ||
callout-note-caption: "Nota" | ||
callout-warning-caption: "Aviso" | ||
callout-important-caption: "Importante" | ||
callout-caution-caption: "Cuidado" | ||
|
||
code-summary: "Código" | ||
|
||
code-tools-menu-caption: "Código" | ||
code-tools-show-all-code: "Mostrar o código" | ||
code-tools-hide-all-code: "Esconder o código" | ||
code-tools-view-source: "Ver o código fonte" | ||
code-tools-source-code: "Código fonte" | ||
|
||
copy-button-tooltip: "Copiar para a área de transferência" | ||
copy-button-tooltip-success: "Copiada" | ||
|
||
repo-action-links-edit: "Editar essa página" | ||
repo-action-links-source: "Ver o código fonte" | ||
repo-action-links-issue: "Criar uma issue" | ||
|
||
search-no-results-text: "Nenhum resultado" | ||
search-matching-documents-text: "documentos correspondentes" | ||
search-copy-link-title: "Copiar link para a busca" | ||
search-hide-matches-text: "Esconder correspondências adicionais" | ||
search-more-match-text: "mais correspondência neste documento" | ||
search-more-matches-text: "mais correspondências neste documento" | ||
search-clear-button-title: "Limpar" | ||
search-detached-cancel-button-title: "Cancelar" | ||
search-submit-button-title: "Enviar" | ||
|
||
crossref-fig-title: "Figura" | ||
crossref-tbl-title: "Tabela" | ||
crossref-lst-title: "Listagem" | ||
crossref-thm-title: "Teorema" | ||
crossref-lem-title: "Lema" | ||
crossref-cor-title: "Corolário" | ||
crossref-prp-title: "Proposição" | ||
crossref-cnj-title: "Conjectura" | ||
crossref-def-title: "Definição" | ||
crossref-exm-title: "Exemplo" | ||
crossref-exr-title: "Exercício" | ||
crossref-sec-prefix: "Seção" | ||
crossref-eq-prefix: "Equação" | ||
crossref-lof-title: "Lista de Figuras" | ||
crossref-lot-title: "Lista de Tabelas" | ||
crossref-lol-title: "Lista de Listagens" | ||
|
||
environment-proof-title: "Comprovação" | ||
environment-remark-title: "Comentário" | ||
environment-solution-title: "Solução" |
Oops, something went wrong.