Cov txheej txheem:

Koj ua li cas R ci ntsa iab apps hloov kho lawv tus kheej?
Koj ua li cas R ci ntsa iab apps hloov kho lawv tus kheej?

Video: Koj ua li cas R ci ntsa iab apps hloov kho lawv tus kheej?

Video: Koj ua li cas R ci ntsa iab apps hloov kho lawv tus kheej?
Video: Ntshe Ua Tsis Tau Koj Niam Tu Nyab |Leela Xiong| 2024, Kaum ib hlis
Anonim
  1. Kauj ruam 1: Tsim koj app tawm tsam cov ntaub ntawv hauv zos.
  2. Kauj ruam 2: Sau ib tsab ntawv ETL lossis cov ntaub ntawv uas tuaj yeem khiav ntawm server.
  3. Kauj ruam 3: Xa koj tsab ntawv mus rau koj lub Linux server lossis rau RStudio Txuas.
  4. Kauj ruam 4: Deploy koj Shiny app rau tus ci iab Server los yog rau RStudio Txuas.
  5. Kauj Ruam 5: Teeb tsa auto refresh ntawm cov ntaub ntawv.

Raws li, koj yuav txuag lub ci ntsa iab app hauv R li cas?

Thaum koj tsim ib tus qauv Ci ntsa iab app , koj cawm ob cov ntaub ntawv hauv koj daim ntawv teev npe ua haujlwm thiab tom qab ntawd hu rau runApp(). Ib cov ntaub ntawv, npe ui. R , muaj hu rau ci iab UI. Cov ntaub ntawv thib ob, npe server.

Ib yam li ntawd, dab tsi yog reactive hauv R ci? A reactive kev nthuav qhia yog ib R kev qhia uas siv widget input thiab rov qab tus nqi. Cov reactive kev qhia yuav hloov kho tus nqi no thaum twg tus thawj widget hloov. Tsim ib tug reactive qhia siv lub reactive function, uas yuav siv ib tug R qhia ib puag ncig los ntawm braces (ib yam li lub render * functions).

Yuav ua li cas koj ua ib tug ci ntsa iab app?

Relaunching Apps

  1. Khiav runApp("App-1"), los yog.
  2. Qhib lub app. R tsab ntawv hauv koj tus RStudio editor. RStudio yuav lees paub cov ntawv ci ntsa iab thiab muab khawm Khiav App (nyob rau saum tus editor). Los yog nyem lub pob no los qhib koj lub app lossis siv cov keyboard shortcut: Command + Shift + Enter (Control + Shift + Nkag rau ntawm Windows).

Puas yog ci ntsa iab server dawb?

Koj tuaj yeem siv lub dawb Community Edition ntawm Shiny Server pib hosting koj ci iab daim ntawv thov, los yog koj tuaj yeem leverage Shiny Server Kev tshaj lij los ntsuas koj cov ntawv thov mus rau cov neeg tuaj saib dav dua, txwv kev nkag mus rau cov ntawv thov tshwj xeeb, lossis tswj cov peev txheej siv los ntawm koj. ci iab daim ntawv thov.

Pom zoo: