{"id":2090,"date":"2021-08-30T03:38:40","date_gmt":"2021-08-30T03:38:40","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=2090"},"modified":"2021-08-30T14:33:03","modified_gmt":"2021-08-30T14:33:03","slug":"tidyx-73-update-shiny-automatically-when-the-database-changes","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-73-update-shiny-automatically-when-the-database-changes\/","title":{"rendered":"TidyX 73: Update Shiny Automatically When the Database Changes"},"content":{"rendered":"<p>Continuing with our work on accessing a SQL database via R, <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/strong><\/span> and I deal with one of the more commonly faced problems &#8212; getting your {shiny} app to automatically update when something in the database changes!<\/p>\n<p>We walk through setting up the {shiny} server so that it checks the database for any new data, pulls the new data and automatically refreshes the {shiny} app without disturbing whatever the user is looking at. This set up will ensure that your end users are always viewing the most up to date data in your system.<\/p>\n<p>To watch the screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=bh-2JONnJ0k\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To access our code, <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/073-Databases_with_Shiny_2\">CLICK HERE<\/a><\/strong><\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing with our work on accessing a SQL database via R, Ellis Hughes and I deal with one of the more commonly faced problems &#8212; getting your {shiny} app to automatically update when something in the database changes! We walk through setting up the {shiny} server so that it checks the database for any new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-2090","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=2090"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2090\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2090\/revisions\/2091"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=2090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=2090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}