oscarbaruffa/BigBookofR
概要
Rの書籍を集めた最大のコレクション(将来的には他のリソースも追加するかもしれません)
学習・教育計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルBig Book of R
Welcome to the Big Book of R repository! This repository hosts a collection of over 400 R programming books, most of which are freely available. The project is open to contributions of both free and paid books.
Getting Started
To work with this repository, you need to have some tools and libraries installed on your system:
Prerequisites
- Quarto: We use Quarto to render the books. Make sure Quarto is installed on your machine.
- R Programming Environment: Ensure that R is installed.
- R Libraries: Install the following R libraries:
library(dplyr) library(tidyr) library(stringr) library(googlesheets4) library(readr) - R studio or Visual Studio Code (VS Code): This project is best managed using R studio or VS Code.
Repository Structure
_quarto.yml: The primary configuration file that manages the rendering of books and calls all.qmdfiles.chapters/: Directory where individual.qmdfiles are stored after fetching data from the Google Sheets.scripts/:fetch_books.R: Script to fetch book data from Google Sheets, create.qmdfiles in thechaptersdirectory, and generate thechapter_list.txt.chapter_list.txt: Text file containing the list of.qmdfiles with their paths, generated byfetch_books.R.
- HTML files: these are part of the book rendering process.
Setting Up Your Local Environment
Clone the repository to your local machine. Use the git command to clone the repository:
git clone [repository-url]Install all the prerequisites mentioned above. Ensure that all necessary tools and libraries, as specified in the project documentation, are installed on your system.
Ensure R and necessary libraries are installed. Use the following commands in your R console to install the required R packages if not already installed:
install.packages("dplyr") install.packages("tidyr") install.packages("stringr") install.packages("googlesheets4") install.packages("readr")
Automated process for new book entries
Run the
fetch_books.Rscript to automate data fetching. This script automatically populates thechaptersdirectory and generates thechapter_list.txtfile. It is designed to facilitate the addition of new book entries without needing manual updates to the project structure:Preview the book locally. Immediately after running the
fetch_books.R, preview the book using:quarto previewThis step ensures that the newly fetched content renders correctly without errors.
Manual process for new chapter entries
- Update the Quarto book structure for new chapters.
If structural changes are required due to the addition of new chapters, manually update the
_quarto.ymlfile:- Delete outdated content:
Remove all content in the
chaptersdirectory and the existingchapter_list.txtfile. - Re-run
fetch_books.R: Fetch the latest data to reflect the new chapter entries and generate updated.qmdfiles. - Manually update
_quarto.yml: Incorporate changes from the newchapter_list.txtinto_quarto.ymlto align with the new chapter structure. - Preview changes:
Run
quarto previewto verify that all updates are rendered correctly before committing the changes to the repository.
- Delete outdated content:
Remove all content in the
This revised documentation now clearly separates the automated process for adding new book entries from the manual process required for new chapter entries, including necessary updates to the _quarto.yml configuration.
To set up GitHub Pages and GitHub Actions, please refer to the detailed guide available here: Setting Up GitHub Pages and Actions
Contribution Guidelines
We welcome contributions! If you wish to add books or suggest improvements:
- Please open an issue through this link: Issue Tracker.
- Follow the contribution guidelines provided in the repository.
Additional Information
The metadata about the books is stored in a Google Sheet, accessible here.
For any further assistance, please refer to the issue tracker and the README within the repository.
関連プロジェクトを探す
読み込み中…