{"id":3218,"date":"2023-08-16T05:05:56","date_gmt":"2023-08-16T05:05:56","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=3218"},"modified":"2023-08-16T12:06:39","modified_gmt":"2023-08-16T12:06:39","slug":"tidyx-episode-156-using-roxygen-to-set-up-custom-functions-in-your-r-packages","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-156-using-roxygen-to-set-up-custom-functions-in-your-r-packages\/","title":{"rendered":"TidyX Episode 156: Using Roxygen to set up custom functions in your R packages"},"content":{"rendered":"<p>Join <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I as we continue our work from last week and build towards creating a full package with bespoke functions. Last week we discussed the functions that we&#8217;d be using in the package as well as why it might be useful to actually create a package with your commonly used functions. This week we show how to use Roxygen to creat those functions in your R-package so that they are accessible to the end use.<\/p>\n<p>&nbsp;<\/p>\n<p>To watch our screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=dOC24qC1cmI\">CLICK HERE<\/a><\/span><\/strong>.<\/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=QUFFLUhqa3dZWjZuR3dzbkdjWEUzcEpJMS1jdWt0X2tBd3xBQ3Jtc0tsVXIwZUNmUXdlOS1JejNRNTVyZU1TZ0VlT3Nxb0x6cW5jNzRrMEZUTjFQZGdnd3UtTnNFTmNmRHhzNmQ4eS1Vc3JaTFlSRERTaDRRNnJMaThVLV9tTHUyNzFZbmgwTVg5OTMyRFJyM2lnbi13UndHZw&amp;q=https%3A%2F%2Fgithub.com%2Fthebioengineer%2FTidyX%2Ftree%2Fmaster%2FTidyTuesday_Explained%2F156-Custom_package_start&amp;v=dOC24qC1cmI\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join Ellis Hughes and I as we continue our work from last week and build towards creating a full package with bespoke functions. Last week we discussed the functions that we&#8217;d be using in the package as well as why it might be useful to actually create a package with your commonly used functions. This [&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-3218","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3218","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=3218"}],"version-history":[{"count":3,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3218\/revisions"}],"predecessor-version":[{"id":3221,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3218\/revisions\/3221"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=3218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=3218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=3218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}