Code Monkey home page Code Monkey logo

coronavirus's Introduction

CircleCI build status Travis build status AppVeyor build status R-CMD-check Lifecycle: stable

Dashboard to track the spread of the coronavirus, based on three data sources, built with shinyMobile and echarts4r.

Tracker | Docs | API | Changelog

Test

You can test the app before preparing any kind of deployment (e.g.: set up a database), visit the docs if you want to deploy it.

library(coronavirus)

virus <- crawl_coronavirus()
run_app(virus)

Get it

You can view the dashboard online or download the package to run it locally or deploy it.

# install.packages("remotes")
remotes::install_github("JohnCoene/coronavirus")

Contribute

Please note that this project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

coronavirus's People

Contributors

divadnojnarg avatar johncoene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coronavirus's Issues

crawl_coronavirus()

Hi there, thanks for the package. An issue on initiation. Mazbe sources have been updated>
ℹ Crawling data from John Hopkins
ℹ Crawling data from Weixin
Error: lexical error: inside a string, '' occurs before a character which it may not.
howHeal":true}}]},{"name":\ ��� ��� ��� ��� Host: 127.0.
(right here) ------^
In addition: Warning message:
In countrycode::countrycode(country, "country.name", "iso2c") :
Some values were not matched unambiguously: Others

Number of suspected cases for DXY data

Hello there,

I was taking a look at the app and noticed that the number of suspected cases for the DXY data was only 2(see pic below).

This is I believe a bug as can be seen here

Pic from the app

News tab

on your dashboard in the news tab, when you select a news story, could you make it open a new tab, instead of leaving your dashboard?

function get_query

Hi, I looked for which package the get_query() function is, but I couldn't find it. It is being used to remove the value of variables from the search url. If possible, help me, I am immensely grateful.

I'm find, sorry for this issue

craw_coronavirus not working

Hi John,

I'm so glad you built this package, I was thinking if something like that was possible this morning.
I tried to run the example from the README and got an error, is there something I'm missing

> library(coronavirus)
> 
> # create and fill config file
> create_config()
✔ _coronavirus.yml file copied: fill it in
> crawl_coronavirus()
Error: could not translate host name "123.456.7.8" to address: Temporary failure in name resolution

Thanks again for this

Package installation issue

I am trying to install the package through R studio.

I used the command below and got error message about encoding....wondering is there anything i need to do with my R environment setup?? Thanks if you can help.

remotes::install_github("JohnCoene/coronavirus")
Downloading GitHub repo JohnCoene/coronavirus@master
√ checking for file 'C:\Users\liuli\AppData\Local\Temp\Rtmp8c7Ka9\remotes29e429787b42\JohnCoene-coronavirus-2bad348/DESCRIPTION' (572ms)

  • preparing 'coronavirus':
    √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • looking to see if a 'data/datalist' file should be added
  • building 'coronavirus_0.0.3.tar.gz'

Installing package into ‘C:/Users/liuli/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)

  • installing source package 'coronavirus' ...
    ** R
    Error : (converted from warning) unable to re-encode 'utils.R' lines 34, 35, 36, 37
    ERROR: unable to collate and parse R files for package 'coronavirus'
  • removing 'C:/Users/liuli/Documents/R/win-library/3.5/coronavirus'
    In R CMD INSTALL
    Error: Failed to install 'coronavirus' from GitHub:
    (converted from warning) installation of package ‘C:/Users/liuli/AppData/Local/Temp/Rtmp8c7Ka9/file29e44cc750/coronavirus_0.0.3.tar.gz’ had non-zero exit status

"Tracker" App ?!?

Hi there,

you name you're app a somehow "tracker".
For me this is confusing.
Now they started to develop real tracker apps, to track down people who are infected with
covid-19 and tracking their contacts.
Your app is only a dashboard, or?
So I would like to suggest to take out the "tracking" term from your repository.

What do you think about that?

Greets,
Ted

P.S.: I started to develop such a tracking app.
https://github.com/MadTed/PD-Tracking-App-hackthepandemic/blob/master/description_of_the_app.txt
And of course, it should also have a dashboard. Perhaps you like to contribute?

Request: Clarification of China Daily vs. Total Discrepancy

This is just a minor request for help.

I noticed your note under "Data Integrity" about the discrepancy between daily vs. cumulative figures in China. I'll be looking to see what you mean, but if you could help illustrate then that would be great.

echarts4r package

Hi John,

Thank you so much for this! This looks great!

I installed via remotes::install_github("JohnCoene/coronavirus")

When I ran run_app(virus), the app panel complained that I did not have echarts4r package. When I installed that package, everything worked like a charm.

I guess somehow echarts4r package was not included.

Thanks!

_Henry

Package dependency 'echarts4r'

Hi,
after finally getting everything up and running locally with "RStudio" under Win10, the Shiny-Window opens and I read the following error message:

ERROR: es gibt kein Paket namens ‘echarts4r’.

Thus, I ran install.packages("echarts4r") and then rerun the following script, using 'Ctrl-Shift-Enter':

library(coronavirus)
virus <- crawl_coronavirus()
run_app(virus)
run_api()

(At least in my RStudio-Installation under Win10 I have to use "Source with Echo" to get this going!)

Shiny_error
The result shows some more errors with this output in the console:
Warnung: Error in : 'e_hide_grid_lines' ist kein von 'namespace:echarts4r' exportiertes Objekt 110: stop 109: getExportedValue 108: :: 107: function_list[[i]] 106: freduce 105: _fseq 104: eval 103: eval 101: %>% 100: mode_new_cases_echarts 99: func 86: origRenderFunc 85: output$new_cases-plot 5: runApp 3: print.shiny.appobj 1: source 261195358357 : 2 77144044928 : 2.910765 67902959968 : 2.933392 [snip]
In summary, it seems difficult to get this running under Win10 with RStudio, but I appreciate the scripting very much!

DXY name typo

Hi, love this work.
I want to point out the correct pinyin of 丁香园 is Ding Xiang Yuan not Ding Xiang Ying.

try to run doocker file

i have build the docker container and try to run it i got this error

Error : Missing config file, see create_config

date issue on api

    "data": [
        {
            "state": "Anhui",
            "country": "Mainland China",
            "lat": 31.8257,
            "lon": 117.2264,
            "type": "confirmed",
            "date": 18283,
            "cases": 1,
            "country_iso2c": "CN"
        }
     ]

I get this date format 18283, which I don't understand what is it, can you convert date into human format or you can tell what is format of date.

After loading and parsing, run_app() returns some warnings, and cannot show charts

I got the following errors:
Warning: Error in : 'e_hide_grid_lines' is not an exported object from 'namespace:echarts4r'

Warning: Error in : 'e_hide_grid_lines' is not an exported object from 'namespace:echarts4r'
[No stack trace available]
Warning: Error in : 'e_hide_grid_lines' is not an exported object from 'namespace:echarts4r'
[No stack trace available]

----------------------------- Line breaker--------------------------

With the following session info:
sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shiny_1.4.0.1 coronavirus_0.1.3

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.