{"id":3323,"date":"2023-11-18T16:57:01","date_gmt":"2023-11-18T16:57:01","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=3323"},"modified":"2023-11-18T16:57:01","modified_gmt":"2023-11-18T16:57:01","slug":"tidyx-episode-163-advanced-shiny-creating-dynamic-links-to-webpages-using-dt","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-163-advanced-shiny-creating-dynamic-links-to-webpages-using-dt\/","title":{"rendered":"TidyX Episode 163: Advanced Shiny &#8211; Creating dynamic links to webpages using DT"},"content":{"rendered":"<p>In this episode, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I use the {<strong>DT<\/strong>} package within a {<strong>shiny<\/strong>} app and scrape data from <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/www.hockey-reference.com\/\">hockey-reference.com<\/a><\/strong><\/span>. We show how you can build a shiny web-app that allows you to insert an html link into the data table so the user can link directly out to the original website if they want to obtain extra data from the source itself.<\/p>\n<p>To access our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/redirect?event=video_description&amp;redir_token=QUFFLUhqbkpYRVdydTBMT3ptUHlNUTgtTWx6U202TGZJZ3xBQ3Jtc0tuWjQ5UEl4dG9EN0dZTHRkN3V3WFdoMHdXYlhCQXpJd0JIb2lhNUpieEEtU1lidF9wS3oyR1J2M2UzN3BkdlBNdWFWMENOU3owYlJkUlNOdFgtakJwMHdET25BdWVaLXRYNl9kRGxoNWxHZmFkLXRlRQ&amp;q=https%3A%2F%2Fgithub.com%2Fthebioengineer%2FTidyX%2Ftree%2Fmaster%2FTidyTuesday_Explained%2F163-Connected_Shiny_Apps_Part2&amp;v=la3PUc12o14\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To watch our screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=la3PUc12o14\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this episode, Ellis Hughes and I use the {DT} package within a {shiny} app and scrape data from hockey-reference.com. We show how you can build a shiny web-app that allows you to insert an html link into the data table so the user can link directly out to the original website if they want [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-3323","post","type-post","status-publish","format-standard","hentry","category-r-tips-tricks"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3323","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=3323"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3323\/revisions"}],"predecessor-version":[{"id":3324,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3323\/revisions\/3324"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=3323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=3323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=3323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}