{"id":16275561,"url":"https://github.com/andrie/minicran","last_synced_at":"2025-04-15T03:49:51.319Z","repository":{"id":13698726,"uuid":"16392590","full_name":"andrie/miniCRAN","owner":"andrie","description":"R package to create internally consistent, mini version of CRAN","archived":false,"fork":false,"pushed_at":"2024-11-13T10:51:33.000Z","size":64665,"stargazers_count":160,"open_issues_count":18,"forks_count":43,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-15T03:49:43.622Z","etag":null,"topics":["cran","package-management","r","r-package","r-stats"],"latest_commit_sha":null,"homepage":"http://andrie.github.io/miniCRAN/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrie.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-30T22:10:43.000Z","updated_at":"2025-02-21T20:35:14.000Z","dependencies_parsed_at":"2024-03-27T10:45:34.770Z","dependency_job_id":"684e734b-aa0f-47eb-b8d0-03f170e455c7","html_url":"https://github.com/andrie/miniCRAN","commit_stats":{"total_commits":523,"total_committers":13,"mean_commits":40.23076923076923,"dds":0.2982791586998088,"last_synced_commit":"637bc9e21086980a73e28ed808f6b69f8ef447e3"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2FminiCRAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2FminiCRAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2FminiCRAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2FminiCRAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrie","download_url":"https://codeload.github.com/andrie/miniCRAN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003943,"owners_count":21196794,"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","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","package-management","r","r-package","r-stats"],"created_at":"2024-10-10T18:35:24.496Z","updated_at":"2025-04-15T03:49:51.302Z","avatar_url":"https://github.com/andrie.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# miniCRAN \u003cimg src='man/figures/miniCRAN-logo.png' align=\"right\" height=\"139\" /\u003e\n\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/miniCRAN)](https://CRAN.R-project.org/package=miniCRAN)\n[![Code coverage](https://codecov.io/gh/andrie/miniCRAN/branch/main/graph/badge.svg)](https://app.codecov.io/gh/andrie/miniCRAN?branch=main)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/miniCRAN)](https://www.r-pkg.org/pkg/miniCRAN)\n\u003c!-- badges: end --\u003e\n\nCreate a mini version of CRAN containing only selected packages\n\n\n## Introduction\n\nAt the end of 2014, CRAN consisted of more than 6,000 packages, and by 2017 this number doubled to more than 12,000.  Many organisations need to maintain a private mirror of CRAN, but with only a subset of packages that are relevant to them.\n\nThe `miniCRAN` package makes it possible to create an internally consistent repository consisting of selected packages from CRAN-like repositories.  The user specifies a set of desired packages, and `miniCRAN` recursively reads the dependency tree for these packages, then downloads only this subset.  \n\n## Important functions:\n\nFunction           | Use it for\n--------------     | ------------------------------------------\n`pkgDep()`         | Find package dependencies\n`makeRepo()`       | Make repository (with or without downloading packages)\n`addPackage()`     | Add additional packages (and their dependencies) to existing repository\n`updatePackages()` | Update the versions of packages currently in the repository\n\n## Installation:\n\nGet the stable version from CRAN:\n\n```r\ninstall.packages(\"miniCRAN\")\nlibrary(\"miniCRAN\")\n```\n\n### Development version\n\nGet the latest development version from github:\n\n```r\n# Use `devtools` to install directly from github\nlibrary(devtools)\ninstall_github(\"andrie/miniCRAN\")\n```\n\n## Example:\n\n```r\n# Determine and download the packages `ggplot2`, `plyr` and `reshape2`, \n# including their dependencies:\n\nlibrary(\"miniCRAN\")\npkgs \u003c- c(\"ggplot2\", \"plyr\", \"reshape2\")\nmakeRepo(pkgDep(pkgs), path = file.path(tempdir(), \"miniCRAN\"))\n```\n\n## Supported by Microsoft\n\nI started this project while employed by Revolution Analytics and Microsoft.  Microsoft has kindly agreed that I maintain the project individually, and retains copyright to all work on the project until October 2017.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrie%2Fminicran","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrie%2Fminicran","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrie%2Fminicran/lists"}