Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code for migrating hugo tweet shortcode. Related to https://github.com/rstudio/blogdown/issues/701
x <- c("/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-04-19-latin-american-r-bioconductor-developers-workshop-2018.html:44:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-06-11-mindfulness.html:27:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:24:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-13-r-gene-regulatory-interaction-formulator-for-inquiring-networks.html:132:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-17-what-about-a-lawyer-like-app-as-the-mininum-help-for-defandants-in-immigration-cases.html:110:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:21:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:21:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:41:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:24:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:26:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:19:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:27:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:20:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:31:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:23:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:32:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:26:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:23:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:31:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:33:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:32:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:24:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:33:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:28:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:34:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:34:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:29:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:35:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:40:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:38:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:30:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:39:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:32:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:41:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:40:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:41:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:41:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:42:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:42:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:49:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:47:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:53:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:46:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:48:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:47:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:51:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:53:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:68:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:50:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:48:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:51:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:73:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:52:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:46:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:74:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:57:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:53:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:78:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:79:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:57:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:58:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:58:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:65:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:84:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:66:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:85:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:62:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:67:4",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:97:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:63:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:69:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:70:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:65:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:102:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:71:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:103:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:66:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:72:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:104:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:73:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:67:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:110:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:69:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:70:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:74:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:72:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:111:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:75:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:73:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:112:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:81:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:77:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:83:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:116:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:84:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:117:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:118:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:82:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:85:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:86:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:119:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:86:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-16-ashg18-tweet-summary.html:99:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:126:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:87:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:127:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:128:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:88:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:129:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:89:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:130:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:134:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:90:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:135:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:136:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:95:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:96:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:137:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:138:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:102:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:139:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:103:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:143:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:144:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:104:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:149:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:108:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:150:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:112:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:151:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:113:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:117:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:28:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:23:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-23-steps-for-writing-a-twitter-summary-conference-blog-post.html:72:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:24:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:29:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:135:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:153:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:30:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:25:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:154:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:141:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:31:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:26:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:142:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:158:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:159:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:36:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:27:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:146:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:161:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:41:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:34:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:42:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:38:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:147:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:47:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:148:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:43:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:162:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:48:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:155:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:44:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:49:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:161:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:163:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:50:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:45:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:162:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:164:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:49:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:165:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:55:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:163:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:50:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:166:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:51:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:164:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:52:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:60:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:165:4",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:53:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:61:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:167:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:167:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:179:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:66:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:55:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:168:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:59:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:67:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:172:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:60:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-18-ashg18-tweet-summary-day-3.html:180:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:68:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:173:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:61:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:49:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-04-19-latin-american-r-bioconductor-developers-workshop-2018.html:48:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:174:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:62:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:69:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-06-11-mindfulness.html:28:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:178:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:66:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:73:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-17-ashg18-tweet-summary-day-2.html:190:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:74:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:67:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:75:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:68:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:76:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:69:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:77:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:78:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:70:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:71:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:82:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-19-ashg18-tweet-summary-day-4.html:72:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:83:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2019-02-03-the-power-of-tapping-into-your-community-for-support.html:55:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:86:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:84:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-12-asking-for-help-is-challenging-but-is-typically-worth-it.html:24:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:85:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:88:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:89:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:86:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:87:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:90:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:91:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-06-11-mindfulness.html:29:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:88:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:228:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:89:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:229:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-06-a-knot-of-threads-from-cshl-to-lcg-unam-to-aldo-barrientos-to-diversity-scholarship-opportunities.html:230:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-10-20-ashg18-tweet-summary-day-5.html:94:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2019-04-10-the-evolution-of-my-academic-career-as-seen-through-posters-and-talks-thanks-to-hugo-academic-4-1.html:22:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2019-02-28-cdsbmexico-remember-to-apply-for-bioc2019-travel-scholarships.html:22:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:55:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:51:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-11-12-asking-for-help-is-challenging-but-is-typically-worth-it.html:25:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-04-19-latin-american-r-bioconductor-developers-workshop-2018.html:52:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-06-11-mindfulness.html:35:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-03-conference-feelings-from-newbie-to-sponsor.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-12-learning-from-our-search-history.html:47:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-29-diving-together-into-the-unknown-world-of-spatial-transcriptomics.html:45:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-04-19-latin-american-r-bioconductor-developers-workshop-2018.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:56:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-12-learning-from-our-search-history.html:168:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-29-diving-together-into-the-unknown-world-of-spatial-transcriptomics.html:54:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-11-03-cleaning-up-my-r-packages-and-config-files.en.html:62:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:58:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-29-diving-together-into-the-unknown-world-of-spatial-transcriptomics.html:61:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-09-29-why-i-applied-to-join-sni-the-mexican-national-researchers-registry.html:62:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:60:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-29-diving-together-into-the-unknown-world-of-spatial-transcriptomics.html:66:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:62:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2020-02-29-diving-together-into-the-unknown-world-of-spatial-transcriptomics.html:200:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:64:1",
"/Users/leocollado/Dropbox/Code/lcolladotorsource/content/post/2018-07-30-harrassment-diversity-in-science-and-inspiraton-from-my-grandmother.html:66:1")
library("stringr")
for(i in x) {
message("Processing ", i)
f <- gsub(":.*", "", i)
html <- readLines(f)
line <- as.integer(gsub(".*:", "", gsub(":[0-9]$", "", i)))
tweetid <- gsub("\".*$", "", gsub("^.*tweet \"", "", html[line]))
stopifnot(length(tweetid) == 1)
date <- gsub("-", "/", gsub("date: |'", "", html[grep("^date: '", html)]))
slug <- gsub("slug: ", "", html[grep("^slug: ", html)])
f_rendered <- paste0("public/", date, "/", slug, "/index.html")
stopifnot(file.exists(f_rendered))
f_html <- readLines(f_rendered)
z <- str_extract(f_html, paste0("[A-z|0-9]+(?=/status/", tweetid, ")"))
userid <- unique(z[!is.na(z)])
stopifnot(length(userid) == 1)
html[line] <- gsub("tweet \"", paste0("tweet user=\"", userid, "\" id=\""), html[line])
writeLines(html, f)
f_rmd <- gsub("\\.html", "\\.Rmd", f)
if(file.exists(f_rmd)) {
message("Reading ", f_rmd)
rmd <- readLines(f_rmd)
if (length(grep(paste0("\'", tweetid), rmd)) >= 1) {
## Single quote scenario
rmd[grep(paste0("\'", tweetid), rmd)] <- gsub(
paste0("\'", tweetid),
paste0("user=\'", userid, "\', id=\'", tweetid),
rmd[grep(paste0("\'", tweetid), rmd)]
)
} else if (length(grep(paste0("\"", tweetid), rmd)) >= 1) {
## Double quote scenario
rmd[grep(paste0("\"", tweetid), rmd)] <- gsub(
paste0("\"", tweetid),
paste0("user=\"", userid, "\", id=\"", tweetid),
rmd[grep(paste0("\"", tweetid), rmd)]
)
} else {
stop("Unexpected")
}
writeLines(rmd, f_rmd)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment