{"id":14069191,"url":"https://github.com/dreamRs/addinit","last_synced_at":"2025-07-30T05:31:36.586Z","repository":{"id":79708899,"uuid":"96358956","full_name":"dreamRs/addinit","owner":"dreamRs","description":"Initialize \u0026 structure an 'RStudio' Project","archived":false,"fork":false,"pushed_at":"2021-12-11T19:08:50.000Z","size":3872,"stargazers_count":52,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-12T13:46:22.685Z","etag":null,"topics":["addin","project","r","rstudio"],"latest_commit_sha":null,"homepage":"https://dreamrs.github.io/addinit/","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/dreamRs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-05T20:33:28.000Z","updated_at":"2025-04-26T01:52:34.000Z","dependencies_parsed_at":"2023-05-14T20:45:29.733Z","dependency_job_id":null,"html_url":"https://github.com/dreamRs/addinit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dreamRs/addinit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamRs%2Faddinit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamRs%2Faddinit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamRs%2Faddinit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamRs%2Faddinit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamRs","download_url":"https://codeload.github.com/dreamRs/addinit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamRs%2Faddinit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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":["addin","project","r","rstudio"],"created_at":"2024-08-13T07:06:42.142Z","updated_at":"2025-07-30T05:31:36.277Z","avatar_url":"https://github.com/dreamRs.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# addinit\n\n\u003e Addin for initializing new projects in RStudio\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)\n[![R-CMD-check](https://github.com/dreamRs/addinit/workflows/R-CMD-check/badge.svg)](https://github.com/dreamRs/addinit/actions)\n\u003c!-- badges: end --\u003e\n\n\n## Overview\n\nThis addin provide a Shiny gadget to easily create directories and scripts from templates\nin your new RStudio project !\n\n\nInstallation :\n```r\n# From Github\n# install.packages(\"devtools\")\ndevtools::install_github(\"dreamRs/addinit\")\n```\n\n\nTo launch the addin, use the addin menu in RStudio.\n\n![](man/figures/screenshot.png)\n\n\n\n## Customization\n\nYou can customize a lot of options in addinit, for example the names\nof the directories to create or a default author for the scripts.\nFor this just modify the parameters list below and\nset the option addinit in your .Rprofile.\n\n\n```r\nmy_custom_params \u003c- list(\n  author = NULL,\n  project = list(\n    folders = list(\n      default = c(\"scripts\", \"datas\", \"funs\", \"inputs\", \"outputs\", \"logs\"),\n      selected = NULL\n    ),\n    packages = list(\n      default = rownames(installed.packages()),\n      selected = NULL\n    ),\n    config = TRUE,\n    source_funs = FALSE\n  ),\n  application = list(\n    folders = list(\n      default = c(\"datas\", \"funs\", \"modules\", \"www\"),\n      selected = NULL\n    ),\n    packages = list(\n      default = rownames(utils::installed.packages()),\n      selected = NULL\n    ),\n    create_template = TRUE,\n    template = \"dashboard\"\n  )\n)\noptions(\"addinit\" = my_custom_params)\n```\n\n\n   \nFor examples, changing the author and the directories' names and select package `shiny` by default :\n\n```r\nmy_custom_params \u003c- list(\n  author = \"Victor\",\n  project = list(\n    folders = list(\n      default = c(\"R\", \"inst\", \"man\", \"data-raw\", \"data\", \"tests\"),\n      selected = c(\"R\", \"man\")\n    ),\n    packages = list(\n      default = rownames(utils::installed.packages()),\n      selected = \"shiny\"\n    )\n  )\n)\noptions(\"addinit\" = my_custom_params)\n```\n\n![](man/figures/customparams.png)\n\n\n   \n\u003cbr\u003e\n   \n\n### Full list of parameters :\n\n| option            \t| value            \t| description                                                                                                                                           \t|\n|-------------------\t|------------------\t|-------------------------------------------------------------------------------------------------------------------------------------------------------\t|\n| author            \t| character        \t| The value to use by default for author input, used when creating a script from template                                                               \t|\n| folders.default   \t| character vector \t| The names of the directories to create                                                                                                                \t|\n| folders.selected  \t| character vector \t| Select folders to create by default                                                                                                                   \t|\n| packages.default  \t| character vector \t| A vector of packages to load in scripts, by default all packages installed                                                                            \t|\n| packages.selected \t| character vector \t| Select packages to load by default                                                                                                                    \t|\n| config            \t| logical          \t| Add a config script or not at the root of the projects for loading data, sourcing funs,...                                                            \t|\n| source_funs       \t| logical          \t| Add code to source functions                                                                                                                          \t|\n| create_template   \t| logical          \t| Make Shiny template selection appear                                                                                                                  \t|\n| template          \t| character        \t| Template to create, `shiny` for a classic shiny app (ui, server, global), `dashboard` for use shinydashboard, `miniapp` for a single file app (app.R) \t|\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdreamRs%2Faddinit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FdreamRs%2Faddinit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdreamRs%2Faddinit/lists"}