Giter Site home page Giter Site logo

nutrient_pt's Introduction

nutrient_pt

This is a collaborative project with the aim of tidying and visualising nutritional data. The goal is to develop a simple shiny app to help the user quickly search, compare and visualize nutritional data of single or combined food ingredients.

In order to help manage the development of the Shiny App a checklist with ideas and tasks is available under doc folder: Ideas_list_checklist.md

Test the app here: https://agrou.shinyapps.io/nutrient_pt/

nutrient_pt app


Instructions to run the app

Go through the following instructions to have the whole project locally:

1. Download the project

  • To run the app you need to download this project, open the nutrient_pt.Rproj in RStudio.

  • Before running the app you need to create a new subdirectory data (nutrient_pt/data) and populate the subdirectory with the data that is obtained by running runall.Rmd file, under src folder (see more instructions below in 2. About the data).

2. About the data

Food composition data is publically available and provided by Instituto Nacional de Saúde Dr. Ricardo Jorge (portuguese "National Institute of Health" - INSA): http://portfir.insa.pt/foodcomp/introduction Under INSA's legal requirements, the data should not be used with any commercial intent.

To download the data you can follow these steps:

  • Access to "Composição dos alimentos" tab, then select 'Pesquisa de Alimentos' >> 'Download da TCA'
  • Save the data insa_tca.xlsx under the already opened project nutrient_pt/data and run the code chunks from the file runall.Rmd. This will save the imported, cleaned and transformed datasets into the project data subdirectory.

3. Run the app

After following the previous instructions, open the files ui.R, server.R and global.R under src folder in RStudio. You may need to install or load the libraries listed in global.R as well. Then you can click on the >Run App button on the top of the screen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.