You may want to try devtools::install_github("vbonhomme/Momocs") instead. As stated before, you need devtools to make it work.

Also, Momocs 1.0.0 is on CRAN so you can simply: install.packages("Momocs").

Have a look to the vignette for a nice entry point into the package. And I'm here to help if required.

Answer from Vincent Bonhomme on Stack Overflow
🌐
Displayr
https://displayr.com › home › blog › how to install r packages from github (step-by-step guide)
How to Install R Packages from GitHub (Step-by-Step Guide)
September 17, 2025 - To install a R package, start by installing the devtools package. The best way to do this is from CRAN, by typing: ... Install the package of interest from GitHub using the following code, where you need to remember to list both the author and ...
🌐
GitHub
https://github.com › r-lib › remotes
GitHub - r-lib/remotes: Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs · GitHub
Download and install R packages stored in GitHub, GitLab, Bitbucket, Bioconductor, or plain subversion or git repositories. This package is a lightweight replacement of the install_* functions in devtools. Indeed most of the code was copied over from devtools.
Discussions

Almost shipped a critical feature built on a package that hadn’t been updated in 2 years, How do you guys vet your dependencies?
Faced the same issue, I use a site called pypistats.com More on reddit.com
🌐 r/learnpython
17
12
April 3, 2026
How to use a non-master branch of a package from GitHub in R?
Use devtools install_github setting ref to the name of the branch (eg ref = "devel") More on reddit.com
🌐 r/rstats
4
8
July 4, 2016
Trying to install a package I made , but I get the "package is not available for this version of R" error.
If your GitHub repository is "ace" and your package is "wonder", install with remotes::install_github("ace/wonder"). The function you're using is not for GitHub packages. Also, you need to have the build tools to install that package, especially if you're on Windows. More on reddit.com
🌐 r/RStudio
5
1
December 12, 2021
How to install an AUR package from a github repo?

You seem to be confused about what the AUR actually is. The AUR is just a repository of user submitted PKGBUILDs, hence its name, Arch User Repository. The PKGBUILDs from there don't differ in any way from ones which you can find somewhere else, like for example in a repo hosted on GitHub. You have to build these package yourself via makepkg, just like when using no AUR helper, which you should know if you are using the AUR. This also means that you have to understand what the PKGBUILD of the package does which you are trying to build.

https://wiki.archlinux.org/index.php/Arch_User_Repository

More on reddit.com
🌐 r/archlinux
9
0
October 8, 2018
People also ask

How do I install an R package from GitHub in RStudio?
Open the Console and run the same commands as in base R: install.packages("devtools") devtools::install_github("user/repo") No special RStudio steps are required.
🌐
displayr.com
displayr.com › home › blog › how to install r packages from github (step-by-step guide)
How to Install R Packages from GitHub (Step-by-Step Guide)
How do I update a package installed from GitHub?
Re-run install_github("user/repo") to get the latest, or use remotes::update_packages().
🌐
displayr.com
displayr.com › home › blog › how to install r packages from github (step-by-step guide)
How to Install R Packages from GitHub (Step-by-Step Guide)
Is it safe to install packages from GitHub?
GitHub packages aren’t CRAN-vetted. Prefer reputable repos, review READMEs/issues, and pin tags or SHAs for reproducibility.
🌐
displayr.com
displayr.com › home › blog › how to install r packages from github (step-by-step guide)
How to Install R Packages from GitHub (Step-by-Step Guide)
🌐
Dataquest
https://dataquest.io › home › blog › the easy way to install a package in r (with 8 code examples)
How to Install a Package in R (with 8 Code Examples) – Dataquest
March 31, 2025 - Some R packages aren't on CRAN but are available on GitHub instead. These packages are often under development or offer features not yet available on CRAN. To install a package from GitHub, use the {remotes} package:
🌐
RCODER
https://r-coder.com › home › r introduction › how to install packages in r?
How to Install R Packages: CRAN, GitHub and Bioconductor
March 15, 2020 - Install packages in R with install.packages() from CRAN, GitHub, zip files or Bioconductor, install several packages at once and update them.
🌐
Kbroman
https://kbroman.org › pkg_primer › pages › github.html
Putting your R package on GitHub
Invoke R and then type ... Load the devtools package. ... In most cases, you just use install_github("author/package").
Find elsewhere
🌐
R-lib
https://remotes.r-lib.org › reference › install_github.html
Attempts to install a package directly from GitHub. — install_github • remotes
This function is vectorised on repo so you can install multiple packages in a single command. install_github( repo, ref = "HEAD", subdir = NULL, auth_token = github_pat(quiet), host = "api.github.com", dependencies = NA, upgrade = c("default", "ask", "always", "never"), force = FALSE, quiet = FALSE, build = TRUE, build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), build_manual = FALSE, build_vignettes = FALSE, repos = getOption("repos"), type = getOption("pkgType"), ...
🌐
GitHub
https://github.com › r-lib › pak
GitHub - r-lib/pak: A fresh approach to package installation · GitHub
Install a binary build of pak from our repository on GitHub: install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))
🌐
CASRAI
https://casrai.org › guides › research tools & software › statistical software for research › how to install r packages (cran, bioconductor, github)
How to Install R Packages from CRAN and GitHub — CASRAI
3 weeks ago - BiocManager::install(c("GenomicFeatures", "AnnotationDbi")), replacing the names with the packages you need. The pak package installs from CRAN, Bioconductor, GitHub, URLs, git repositories, local files and directories.
🌐
R-lib
https://remotes.r-lib.org › index.html
R Package Installation from Remote Repositories, Including GitHub • remotes
Download and install R packages stored in GitHub, GitLab, Bitbucket, Bioconductor, or plain subversion or git repositories. This package provides the install_* functions in devtools. Indeed most of the code was copied over from devtools.
🌐
RDocumentation
https://rdocumentation.org › packages › devtools › versions › 1.13.6 › topics › install_github
install_github function - RDocumentation
Other package installation: install_bioc, install_bitbucket, install_cran, install_git, install_svn, install_url, install_version, install, uninstall ... # NOT RUN { install_github("klutometis/roxygen") install_github("wch/ggplot2") install_github(c("rstudio/httpuv", "rstudio/shiny")) install_github(c("hadley/[email protected]", "klutometis/roxygen#142", "mfrasca/r-logging/pkg")) install_github("r-lib/devtools") # To install from a private repo, use auth_token with a token # from https://github.com/settings/tokens.
🌐
GitHub
https://github.com › hoxo-m › githubinstall
GitHub - hoxo-m/githubinstall: A Helpful Way to Install R Packages Hosted on GitHub · GitHub
For instance, you can install dplyr from the pull request #3274 as follows: gh_install_packages("dplyr", ref = github_pull("3274"))
Author: hoxo-m
🌐
R-lib
https://pak.r-lib.org › reference › pak_package_sources.html
Install packages from CRAN, Bioconductor, GitHub, URLs, etc. — Package sources • pak
If specified, then a source R package is requested from a CRAN-like repository. For package installations, source always triggers a re-install. In other words, source implies the reinstall parameter. This parameter is supported for bioc::, cran:: and standard:: remote types, and it is ignored for others. reinstall requests a re-install for package installations. It is supported by the bioc::, cran::, git::, github::, gitlab::, local::, standard::, and url:: remote types.
🌐
Hoxo-m
https://hoxo-m.github.io › githubinstall
A Helpful Way to Install R Packages Hosted on GitHub • githubinstall
For instance, you can install dplyr from the pull request #2058 as follows: gh_install_packages("dplyr", ref = github_pull("2058"))
🌐
The Carpentries
https://carpentries-incubator.github.io › lesson-R-packaging › accessing.html
R Packaging: Accessing packages
5 days ago - We can use GitHub to find packages ... you can have your package published there immediately. To install a package from GitHub, we need the package devtools, which we have just installed....
🌐
Rdrr.io
https://rdrr.io › cran › remotes › man › install_github.html
install_github: Attempts to install a package directly from GitHub. in remotes: R Package Installation from Remote Repositories, Including 'GitHub'
May 29, 2024 - ## Not run: install_github("klutometis/roxygen") install_github("wch/ggplot2", ref = github_pull("142")) install_github(c("rstudio/httpuv", "rstudio/shiny")) install_github(c("hadley/httr@v0.4", "klutometis/roxygen#142", "r-lib/roxygen2@*release", "mfrasca/r-logging/pkg")) # To install from a private repo, use auth_token with a token # from https://github.com/settings/tokens. You only need the # repo scope. Best practice is to save your PAT in env var called # GITHUB_PAT. install_github("hadley/private", auth_token = "abc") # To pass option arguments to `R CMD INSTALL` use `INSTALL_opts`. e.g. to install a package with source references and tests install_github("rstudio/shiny", INSTALL_opts = c("--with-keep.source", "--install-tests")) ## End(Not run)
🌐
STHDA
https://sthda.com › learn › programming › install r packages: install.packages, library & updates
Install R Packages: install.packages, library & Updates – Datanovia
Install R packages with install.packages() from CRAN, load them with library(), and understand library() vs require(), where packages live (.libPaths()), how to install from GitHub and Bioconductor, and how to update and list installed packages.
🌐
Rsquared Academy
https://intro-r.rsquaredacademy.com › install-update-r-packages
10  Install & Update R Packages – Introduction to R
Packages from CRAN can be installed ... before releasing them on CRAN. Such packages can be installed using install_github() from devtools or remotes package....
🌐
Davidzeleny
https://davidzeleny.net › wiki › doku.php › recol:r_packages
R packages [David Zelený]
To install some package (here called MyPackage, first install devtools from CRAN, and then apply the function install_github: install.packages ("devtools") devtools::install_github ("MyPackage") (note that :: means that install_github function will be read from the devtools namespace without need to actually upload the whole devtools library).
🌐
Combine-australia
https://combine-australia.github.io › r-pkg-dev › building-installing-and-releasing.html
10 Building, installing and releasing | R package workshop
Now that your package is on the internet anyone can install it using the install_github() function in the remotes package (which you should already have installed as a dependency of devtools). All you need to give it is the name of the user and repository. ... If you are familiar with git you ...