{"id":13707733,"url":"https://github.com/mcanouil/rstartup","last_synced_at":"2025-03-17T13:24:04.930Z","repository":{"id":85244789,"uuid":"242747824","full_name":"mcanouil/rstartup","owner":"mcanouil","description":"Tips to start working with R.","archived":false,"fork":false,"pushed_at":"2021-10-11T09:31:36.000Z","size":49827,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T22:48:58.114Z","etag":null,"topics":["introduction","presentation-slides","r","startup"],"latest_commit_sha":null,"homepage":"https://m.canouil.dev/rstartup/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcanouil.png","metadata":{"files":{"readme":"README.Rmd","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":"2020-02-24T13:48:08.000Z","updated_at":"2025-01-02T06:09:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"afd7643d-2aa2-444b-86a4-021018c094c1","html_url":"https://github.com/mcanouil/rstartup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Frstartup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Frstartup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Frstartup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Frstartup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcanouil","download_url":"https://codeload.github.com/mcanouil/rstartup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039202,"owners_count":20387835,"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":["introduction","presentation-slides","r","startup"],"created_at":"2024-08-02T22:01:41.515Z","updated_at":"2025-03-17T13:24:04.908Z","avatar_url":"https://github.com/mcanouil.png","language":"HTML","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n# rstartup\n\n\u003c!-- badges: start --\u003e\n[![License](https://img.shields.io/github/license/mcanouil/rstartup)](LICENSE)\n\u003c!-- badges: end --\u003e\n\nThis is the repository for the slides about how to have a good start with R (in French).\n\n```{r, include = FALSE}\nlibrary(magick)\nlibrary(here)\nlibrary(chromote)\nlibrary(glue)\n\nthumb \u003c- \"thumbs/title_slide_thumb.png\"\npng \u003c- sub(\"_thumb\", \"\", thumb)\nindex_html \u003c- here::here(\"docs/index.html\")\n\nif (!file.exists(thumb) | file.mtime(thumb) \u003c file.mtime(index_html)) {\n  web_browser \u003c- suppressMessages(try(chromote::ChromoteSession$new(), silent = TRUE))\n  if (inherits(web_browser, \"try-error\") \u0026\u0026 Sys.info()[[\"sysname\"]] == \"Windows\") {\n    edge_path \u003c- \"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe\"\n    if (file.exists(edge_path)) {\n      Sys.setenv(CHROMOTE_CHROME = edge_path)\n      web_browser \u003c- chromote::ChromoteSession$new()\n    } else {\n      stop('Please set Sys.setenv(CHROMOTE_CHROME = \"Path/To/Chrome\")')\n    }\n  }\n  web_browser$Page$navigate(index_html, wait_ = FALSE)\n  page_browser \u003c- web_browser$Page$loadEventFired()\n  web_browser$screenshot(\n    filename = png,\n    selector = \"div.remark-slide-scaler\",\n    scale = 2\n  )\n  web_browser$close()\n  \n  resize \u003c- function(path_in, path_out) {\n    image \u003c- image_read(path_in)\n    image \u003c- image_resize(image, \"384x\")\n    image_write(image, path_out)\n  }\n  resize(png, thumb)\n}\n```\n\n```{r, results = \"asis\", echo = FALSE}\nglue::glue('\u003ca href=\"{png}\"\u003e\u003cimg alt=\"Title Slide\" src=\"{thumb}\" width=\"384\" height=\"216\"\u003e\u003c/a\u003e')\n```\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Frstartup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcanouil%2Frstartup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Frstartup/lists"}