{"id":14068323,"url":"https://github.com/cloudyr/ghit","last_synced_at":"2025-07-30T03:32:44.980Z","repository":{"id":70475486,"uuid":"48931586","full_name":"cloudyr/ghit","owner":"cloudyr","description":"Lightweight GitHub Package Installer","archived":true,"fork":false,"pushed_at":"2018-04-02T22:01:26.000Z","size":114,"stargazers_count":43,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-04T09:39:12.066Z","etag":null,"topics":["cran","devtools","git","git2r","github","installer","r","r-package"],"latest_commit_sha":null,"homepage":"https://cloud.r-project.org/package=ghit","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-03T02:45:13.000Z","updated_at":"2023-07-25T13:59:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca028013-e584-4868-87ce-dfc3bc029209","html_url":"https://github.com/cloudyr/ghit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cloudyr/ghit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2Fghit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2Fghit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2Fghit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2Fghit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudyr","download_url":"https://codeload.github.com/cloudyr/ghit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2Fghit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267803984,"owners_count":24146527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cran","devtools","git","git2r","github","installer","r","r-package"],"created_at":"2024-08-13T07:06:05.840Z","updated_at":"2025-07-30T03:32:44.649Z","avatar_url":"https://github.com/cloudyr.png","language":"R","readme":"This package is now deprecated.\n\nNo further updates will be made here or sent to CRAN.\n\nPlease use [**remotes**](https://cran.r-project.org/package=remotes) instead.\n\n\n\n---\n\n# ghit: Lightweight GitHub Package Installer\n\n\n**ghit** provides a lightweight alternative to `devtools::install_github()` that uses git2r and the native R package management functionality to install R packages hosted on GitHub. At present, `devtools::install_github()` provides the most convenient way to install development versions of R packages, but devtools has 16 direct package dependencies and is therefore a quite heavy duty package to load simply to install packages.\n\nghit is therefore a simpler alternative to perform the single task of installing GitHub packages without the rest of devtools. It achieves this by using git2r to pull GitHub packages (including those requiring authentication), and relying on native R tools for building packages, storing those packages in a local and disposable CRAN-like repository, and installing them (and their dependencies) with `install.packages()`. From v0.2.15, an `install_bitbucket()` installer is also provided.\n\n## Package Functionality\n\nLike `devtools::install_github()`, `ghit::install_github()` is a vectorized package installer that is extremely flexible:\n\n```R\nlibrary(\"ghit\")\ntmp \u003c- file.path(tempdir(), \"tmplib\")\ndir.create(tmp)\non.exit(unlink(tmp))\n\n# single package\ninstall_github(\"hadley/devtools\", lib = tmp)\n\n# multiple packages\ninstall_github(c(\"hadley/devtools\", \"cloudyr/travisci\"), lib = tmp)\n\n# package in subdirectory\ninstall_github(\"pablobarbera/twitter_ideology/pkg/tweetscores\", lib = tmp)\n\n# package in misnamed repository\ninstall_github(\"klutometis/roxygen\", lib = tmp)\n\n# package at a given commit\ninstall_github(\"leeper/rio@a8d0fca27\", lib = tmp)\n\n# package from a pull request\ninstall_github(\"cloudyr/ghit#13\", lib = tmp)\n\n# package from a branch\ninstall_github(\"kbenoit/quanteda[dev]\", lib = tmp)\n```\n\nNote that branch names, commits, and subdirectories can be placed in essentially any order as long as the proper notation is followed.\n\n\n## Profiling ##\n\nghit is similarly efficient to  `devtools::install_github()`, but is much less verbose by default:\n\n```R\n\u003e system.time(ghit::install_github(\"cloudyr/ghit\"))\n   user  system elapsed \n   0.92    0.29    4.64\n\n\u003e system.time(devtools::install_github(\"cloudyr/ghit\"))\nDownloading GitHub repo cloudyr/ghit@master\nInstalling ghit\n\"C:/PROGRA~1/R/R-32~1.3/bin/x64/R\" --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \\\n  \"C:/Users/Thomas/AppData/Local/Temp/RtmpGGraeG/devtools1b6459fa28a1/cloudyr-ghit-45ac056\" --library=\"C:/Program Files/R/R-3.2.3/library\"  \\\n  --install-tests \n\n* installing *source* package 'ghit' ...\n** R\n** inst\n** tests\n** preparing package for lazy loading\n** help\n*** installing help indices\n** building package indices\n** testing if installed package can be loaded\n*** arch - i386\n*** arch - x64\n* DONE (ghit)\n   user  system elapsed \n   1.16    0.12    4.36 \n```\n\n## Package Installation\n\n[![CRAN Version](https://www.r-pkg.org/badges/version/ghit)](https://cran.r-project.org/package=ghit)\n![Downloads](https://cranlogs.r-pkg.org/badges/ghit)\n[![Travis-CI Build Status](https://travis-ci.org/cloudyr/ghit.png?branch=master)](https://travis-ci.org/cloudyr/ghit)\n[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/0nr5r6fycm8jcxm0?svg=true)](https://ci.appveyor.com/project/cloudyr/ghit)\n[![codecov.io](https://codecov.io/github/cloudyr/ghit/coverage.svg?branch=master)](https://codecov.io/github/cloudyr/ghit?branch=master)\n\nThe package is available on [CRAN](https://cran.r-project.org/package=ghit) and can be installed directly in R using:\n\n```R\ninstall.packages(\"ghit\")\n```\n\nThe latest development version on GitHub can be installed using itself:\n\n```R\nghit::install_github(\"cloudyr/ghit\")\n```\n\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudyr%2Fghit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudyr%2Fghit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudyr%2Fghit/lists"}