liftr-addins.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <!-- Generated by pkgdown: do not edit by hand --><html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>RStudio Addins for liftr • liftr</title>
  9. <!-- jquery --><script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script><!-- Bootstrap --><link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
  10. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script><!-- Font Awesome icons --><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
  11. <!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
  12. <script src="../jquery.sticky-kit.min.js"></script><script src="../pkgdown.js"></script><!-- mathjax --><script src="https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><!--[if lt IE 9]>
  13. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  14. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  15. <![endif]--><!-- Google analytics --><script>
  16. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  17. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  18. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  19. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  20. ga('create', 'UA-65001771-1', 'auto');
  21. ga('send', 'pageview');
  22. </script>
  23. </head>
  24. <body>
  25. <div class="container template-vignette">
  26. <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">liftr</a>
  35. </div>
  36. <div id="navbar" class="navbar-collapse collapse">
  37. <ul class="nav navbar-nav">
  38. <li>
  39. <a href="../index.html">
  40. <span class="fa fa-home fa-lg"></span>
  41. </a>
  42. </li>
  43. <li>
  44. <a href="../reference/index.html">Reference</a>
  45. </li>
  46. <li class="dropdown">
  47. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  48. Articles
  49. <span class="caret"></span>
  50. </a>
  51. <ul class="dropdown-menu" role="menu">
  52. <li>
  53. <a href="../articles/liftr-addins.html">RStudio Addins for liftr</a>
  54. </li>
  55. <li>
  56. <a href="../articles/liftr-intro.html">A Quick Introduction to liftr</a>
  57. </li>
  58. <li>
  59. <a href="../articles/liftr-tidyverse.html">Explore tidyverse with liftr</a>
  60. </li>
  61. </ul>
  62. </li>
  63. <li>
  64. <a href="../news/index.html">News</a>
  65. </li>
  66. </ul>
  67. <ul class="nav navbar-nav navbar-right">
  68. <li>
  69. <a href="https://github.com/road2stat/liftr">
  70. <span class="fa fa-github fa-lg"></span>
  71. </a>
  72. </li>
  73. </ul>
  74. </div>
  75. <!--/.nav-collapse -->
  76. </div>
  77. <!--/.container -->
  78. </div>
  79. <!--/.navbar -->
  80. </header><div class="row">
  81. <div class="col-md-9">
  82. <div class="page-header toc-ignore">
  83. <h1>RStudio Addins for liftr</h1>
  84. <h4 class="author">Nan Xiao &lt;<a href="https://nanx.me" class="uri">https://nanx.me</a>&gt;</h4>
  85. <h4 class="date">2017-12-13</h4>
  86. </div>
  87. <div class="contents">
  88. <div id="rstudio-addins-to-the-rescue" class="section level1">
  89. <h1 class="hasAnchor">
  90. <a href="#rstudio-addins-to-the-rescue" class="anchor"></a>RStudio addins to the rescue</h1>
  91. <p>If you use RStudio, there is a good chance that you love the <code>Knit</code> button that will give you the power of one-click R Markdown document compilation. Luckily, we also prepared four RStudio addins that supports containerizing and rendering your documents with liftr.</p>
  92. <p><img src="https://i.imgur.com/HahL1l2.png" width="100%" class="img-responsive" alt="RStudio addins for liftr"></p>
  93. </div>
  94. <div id="addin-containerize" class="section level1">
  95. <h1 class="hasAnchor">
  96. <a href="#addin-containerize" class="anchor"></a>Addin: 📦 Containerize</h1>
  97. <p>This addin helps you generate the <code>Dockerfile</code> for the current R Markdown document opened in RStudio (with liftr meta), using <code><a href="../reference/lift.html">lift()</a></code>.</p>
  98. </div>
  99. <div id="addin-render" class="section level1">
  100. <h1 class="hasAnchor">
  101. <a href="#addin-render" class="anchor"></a>Addin: 🎉 Render</h1>
  102. <p>This addin will generate the <code>Dockerfile</code> based on the document, create the Docker container, and render the document inside the container using <code><a href="../reference/render_docker.html">render_docker()</a></code>.</p>
  103. </div>
  104. <div id="addin-prune-dangling" class="section level1">
  105. <h1 class="hasAnchor">
  106. <a href="#addin-prune-dangling" class="anchor"></a>Addin: ✂️ Prune Dangling</h1>
  107. <p>Sometimes the Docker image build fails due to various reasons, this addin will help you clean up the unused dangling containers and images automatically.</p>
  108. </div>
  109. <div id="addin-remove-image" class="section level1">
  110. <h1 class="hasAnchor">
  111. <a href="#addin-remove-image" class="anchor"></a>Addin: 🗑 Remove Image</h1>
  112. <p>After having a satisfying rendered document, maybe you would not need the Docker image for rendering the document for a long time. This addin helps you remove that particular Docker image.</p>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
  117. <div id="tocnav">
  118. <h2 class="hasAnchor">
  119. <a href="#tocnav" class="anchor"></a>Contents</h2>
  120. <ul class="nav nav-pills nav-stacked">
  121. <li><a href="#rstudio-addins-to-the-rescue">RStudio addins to the rescue</a></li>
  122. <li><a href="#addin-containerize">Addin: 📦 Containerize</a></li>
  123. <li><a href="#addin-render">Addin: 🎉 Render</a></li>
  124. <li><a href="#addin-prune-dangling">Addin: ✂️ Prune Dangling</a></li>
  125. <li><a href="#addin-remove-image">Addin: 🗑 Remove Image</a></li>
  126. </ul>
  127. </div>
  128. </div>
  129. </div>
  130. <footer><div class="copyright">
  131. <p>Developed by Nan Xiao.</p>
  132. </div>
  133. <div class="pkgdown">
  134. <p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
  135. </div>
  136. </footer>
  137. </div>
  138. </body>
  139. </html>