Cov txheej txheem:

Yuav ua li cas koj ua ib qho app ci?
Yuav ua li cas koj ua ib qho app ci?

Video: Yuav ua li cas koj ua ib qho app ci?

Video: Yuav ua li cas koj ua ib qho app ci?
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim

Muaj peb txoj cai los tsim kom muaj qhov tso zis hauv Shiny

  1. Txuag cov khoom tso tawm rau hauv cov ntawv tso zis (nco txog qhov app template - txhua tus neeg rau zaub mov muaj nuj nqi muaj cov lus sib cav)
  2. Tsim cov khoom nrog render * muaj nuj nqi, qhov twg * yog hom tso zis.

Ib yam li ib tug yuav nug, koj yuav pib lub app ci iab li cas?

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).

shiny apps yog dab tsi? ci iab yog ib pob R uas ua rau nws yooj yim los tsim kev sib tham sib web apps ncaj nraim ntawm R. Koj tuaj yeem tuav tus kheej apps ntawm nplooj ntawv web lossis embed lawv hauv R Markdown cov ntaub ntawv lossis tsim cov dashboards. Koj tseem tuaj yeem ncua koj li Ci ntsa iab apps nrog CSS cov ntsiab lus, htmlwidgets, thiab JavaScript ua. Ci ntsa iab apps yooj yim sau.

Ua raws li qhov no hauv kev txiav txim siab, koj yuav txuag lub ci app 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.

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

  1. Kauj ruam 1: Tsim koj lub app tiv thaiv 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 rau koj lub Linux server lossis ntawm RStudio Txuas.
  4. Kauj ruam 4: Muab koj lub ci ci app rau lub ci ntsa iab Server lossis rau RStudio Txuas.
  5. Kauj ruam 5: Teeb nws pib refresh ntawm cov ntaub ntawv.

Pom zoo: