A project to iteratively generate a set of webpages in HTML with R. Given a dataset in csv every page will render dfferent data but on a common template.
read_data.R
: reads the csv and the json filesgenerator.R
: source the file, define how many pages and how many products per page to generate. Lastly running the loop, the template file will be read, and the relevant web pages will be generated.Project_template.Rhtml
: template that define the webpages style.product_pages
folder: folder populated with the previously generated webpages
Below the instruction to set up this project.
-
Clone the repo
git clone https://github.com/ccrisc/Rhtml-iterator.git
-
Run the code in the file
read_data.R
-
Run everything in the file
generator.R
This will read the file Project_template.Rhtml
and create many .html file inside the folder product_pages
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/Rhtml-iterator
) - Commit your Changes (
git commit -m 'Add some Rhtml-iterator'
) - Push to the Branch (
git push origin feature/Rhtml-iterator
) - Open a Pull Request