Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#32 renv setup #33

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

#32 renv setup #33

wants to merge 2 commits into from

Conversation

pr130
Copy link
Contributor

@pr130 pr130 commented Apr 5, 2023

#32

fügt renv hinzu und dokumentiert im README das vorgehen.

These packages are now all installed via renv, so they should not be installed manually anymore.
@selinaZitrone
Copy link
Collaborator

Also bei mir funktioniert das mit renv gut. Ich musste nur renv::restore() ausführen und die packages wurden installiert.
Was ich noch gemacht habe ist folgendes:

  • rebase auf den develop branch. Ich glaube der branch wurde aus main erstellt und hatte darum die aktuellsten Änderungen noch nicht drin
  • Alle install_github() und install.packages() Kommentare gelöscht, weil das Installieren dieser packages jetzt ja über renv gemacht wird. Nicht gelöscht hab ich die kommentierten install.package() allerdings bei den Übungen, weil das ja für die Teilnehmer*innen als Hilfe gedacht war.

Was mich noch gewundert hat: renv hat bei mir ziemlich viele packages installiert. Ich wollte dann mal nach packages suchen, die installiert wurden, aber nicht gebraucht werden. Das hab ich folgendermaßen gemacht:

unused <- packrat::unused_packages(here::here(), 
                                   lib.loc = here::here("renv/library/R-4.2/x86_64-w64-mingw32/"))
# look at the names of the unused packages 
unlist(lapply(unused, function(x) x$name))
# [1] "brew"        "credentials" "devtools"    "downlit"     "gert"        "gh"          "gitcreds"   
# [8] "ini"         "miniUI"      "pkgbuild"    "pkgdown"     "profvis"     "ragg"        "rcmdcheck"  
# [15] "roxygen2"    "rversions"   "sessioninfo" "systemfonts" "textshaping" "urlchecker"  "usethis"    
# [22] "xopen"  

Ich hab allerdings nicht rausgefunden, warum diese Packages in renv drin sind und ob man die da loswerden will oder ob die für irgendwas wichtig sind.

@selinaZitrone selinaZitrone mentioned this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants