To save the file in this path, type 01-rscript/script.R in the blank space for the file’s name. \n ", paste ( table, collapse = "\n" ) ) |> writeLines ( "01-monitoring-quarto-repos/README.md" ) print ( "The end! Congrats!" ) Updated with GitHub Actions in ", format ( Sys.Date ( ), '%b %d %Y' ), ". id = "id_repo" ) |> tidyr :: pivot_wider ( ) |> dplyr :: transmute ( name, url = html_url, description, stars = as.numeric ( stargazers_count ), forks = as.numeric ( forks_count ), open_issues = as.numeric ( open_issues_count ) ) |> dplyr :: arrange ( dplyr :: desc ( stars ) ) # write CSV file with the result quarto_repos |> readr :: write_csv ( "01-monitoring-quarto-repos/quarto_repos.csv" ) # write the README.md file # create table to add on README table dplyr :: mutate (description = tidyr :: replace_na ( description, "" ) ) |> knitr :: kable ( ) # Write the content on README paste0 ( "# Repositories from quarto-dev Made by (). quarto_orgs purrr :: flatten ( ) |> purrr :: map ( unlist, recursive = TRUE ) |> purrr :: map_dfr ( tibble :: enframe. Print ( "Hi! Welcome to a GH Actions with an R example :)" ) # get information about the repositories on the Quarto organizations. Give your repository a name, then choose whether you want it to be public or private. To create a repository, on the homepage of GitHub, click on the “+” icon in the top right corner and select New repository. A repository is like that but in the cloud! If you don’t know what a repository is, imagine having a directory on your computer, and you store files from a project in that directory. GitHub Actions workflows work within a repository. You can create a new account for free! You also can sign in to your existing account if you already have one. To start using GitHub Actions, first, you need to have an account on GitHub. This post is a tutorial on how to use GitHub Actions with an R script, using GitHub on a browser :) We will write a GitHub Action workflow that runs an R script to collect data about the repositories in the quarto organizations and save the result into the GitHub repository.Ĭreate a README.md file (this is optional)Ĭreating your first workflow Create a GitHub account
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |