My site is working okay so far. All the contents are on github. It might be important to mention that I have used the postcards
package for making my index.html
.
But now that I am trying to build the site using the Build tab in RStudio, I am getting the following error:
Warning message:
In file.rename(output, output_dest) :
cannot rename file 'D:/udurrani_distill/index.html' to './_site/index.html', reason 'The system cannot find the file specified'
I have not changed anything on the site, just clicked on Build Website
in the Build tab. When I open the index.html
from within _site
, I see a postcards
page but the background color and header are missing.
What has suddenly gone wrong?
For reference, I am pasting the index.html
source and the result of render_site()
below.
index.html in _site
:
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<title>Umair Durrani</title>
<script src="index_files/accessible-code-block-0.0.1/empty-anchor.js"></script>
</head>
<body>
<div class="container min-vh-100">
<div class="row min-vh-100 justify-content-center align-items-center">
<div class="col-12 text-center">
<img src=umair2.png style="height:10rem" class="rounded-circle">
<div class="mt-3">
<h1>Umair Durrani</h1>
</div>
<div class="row justify-content-center align-items-center">
<div class="col-6 mt-3 text-center d-none d-sm-block">
<p>I am a PhD student in Civil and Environmental Engineering at University of Windsor. My research is about driver behavior and its role in traffic safety in mixed traffic flow. I love <a href="https://cran.r-project.org/"><code>R</code></a> and Rstudio. <a href="Umair_Durrani_Resume.pdf">Download my resume</a>.</p>
<p>You know my name, now tell me yours:</p>
<iframe src="https://umair.shinyapps.io/name_app/" style="width: 60%; height: 120px;">
</iframe>
</div>
<div class="col-11 mt-3 text-center d-block d-sm-none">
<p>I am a PhD student in Civil and Environmental Engineering at University of Windsor. My research is about driver behavior and its role in traffic safety in mixed traffic flow. I love <a href="https://cran.r-project.org/"><code>R</code></a> and Rstudio. <a href="Umair_Durrani_Resume.pdf">Download my resume</a>.</p>
<p>You know my name, now tell me yours:</p>
<iframe src="https://umair.shinyapps.io/name_app/" style="width: 60%; height: 120px;">
</iframe>
</div>
</div>
<hr style="width:60%;"/>
<div class="row justify-content-center align-items-center">
<div class="col-8 text-center d-none d-sm-block">
<ul class="list-inline">
<li class="list-inline-item">
<a href=https://www.linkedin.com/in/durraniu/>
<button type="button" class="btn btn-outline-dark mb-2">
LinkedIn
</button>
</a>
</li>
<li class="list-inline-item">
<a href=https://twitter.com/umairdurrani87>
<button type="button" class="btn btn-outline-dark mb-2">
Twitter
</button>
</a>
</li>
<li class="list-inline-item">
<a href=https://github.com/durraniu>
<button type="button" class="btn btn-outline-dark mb-2">
GitHub
</button>
</a>
</li>
</ul>
</div>
</div>
<div class="row justify-content-center align-items-center">
<div class="col-8 m-1 text-center d-block d-sm-none">
<div class="list-group">
<a href=https://www.linkedin.com/in/durraniu/>
<button type="button" class="list-group-item list-group-item-action my-1 rounded">
LinkedIn
</button>
</a>
<a href=https://twitter.com/umairdurrani87>
<button type="button" class="list-group-item list-group-item-action my-1 rounded">
Twitter
</button>
</a>
<a href=https://github.com/durraniu>
<button type="button" class="list-group-item list-group-item-action my-1 rounded">
GitHub
</button>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>
Full output of render_site()
==> rmarkdown::render_site(encoding = 'UTF-8')
Rendering: ./Blog.Rmd
|......................................................................| 100%
ordinary text without R code
NOTE: Not creating feed for posts (no base_url defined for site)
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Blog.utf8.md --to html5 --from markdown+autolink_bare_uris+tex_math_single_backslash --output Blog.html --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\latex-div.lua" --standalone --variable toc-float=1 --highlight-style "C:/Users/umair/Documents/R/win-library/4.0/distill/rmarkdown/templates/distill_article/resources/arrow.theme" --template "C:\Users\umair\Documents\R\win-library\4.0\distill\rmarkdown\templates\distill_article\resources\default.html" "--metadata=link-citations:true" --variable layout=listing --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b8200a121chtml" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b847009fchtml" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b879e14aefhtml" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b8667a1519html" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b828c277adhtml" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b8660c4964html" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b830cc5dahtml" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b86b56700chtml" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b82645dd6html" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b81eb632bdhtml" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b82bbf2e98html" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\rmarkdown-str13b83f147557.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b863c27140html"
Rendering: ./index.Rmd
|......................................................................| 100%
ordinary text without R code
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS index.utf8.md --to html5 --from markdown+autolink_bare_uris+tex_math_single_backslash --output index.html --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\latex-div.lua" --standalone --variable toc-float=1 --highlight-style "C:/Users/umair/Documents/R/win-library/4.0/distill/rmarkdown/templates/distill_article/resources/arrow.theme" --template "C:\Users\umair\Documents\R\win-library\4.0\distill\rmarkdown\templates\distill_article\resources\default.html" "--metadata=link-citations:true" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b86e132c3chtml" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b8686ba0html" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b84a306d14html" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b839116d74html" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b85c6a466ehtml" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b823fd742bhtml" --include-before-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b861b862b4html" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b81b9a226html" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b871fc2573html" --include-after-body "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b864f64811html" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\rmarkdown-str13b859ea7a4c.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\file13b8a87711ehtml"
|......................................................................| 100%
ordinary text without R code
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS index.utf8.md --to html4 --from markdown+tex_math_single_backslash-autolink_bare_uris --output index.html --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\umair\Documents\R\win-library\4.0\rmarkdown\rmarkdown\lua\latex-div.lua" --standalone --section-divs --template "C:\Users\umair\Documents\R\win-library\4.0\postcards\pandoc_templates\jolla.html" --highlight-style pygments --include-in-header "C:\Users\umair\AppData\Local\Temp\RtmpiSCl9H\rmarkdown-str13b810bd5daf.html"
Processing posts:
_posts/2020-12-25-elevation-maps-in-r
Output created: _site/index.html
_posts/2020-12-19-hellowww
Warning message:
In file.rename(output, output_dest) :
cannot rename file 'D:/udurrani_distill/index.html' to './_site/index.html', reason 'The system cannot find the file specified'