Comenta pedaços do script shell.

parent 4ff6d6b4
# Removes the _site/.
rm -r _site/
# rm -r _site/
# Rscript -e "library(rmarkdown); clean_site()"
# The root file.
......@@ -7,20 +7,20 @@ echo $PWD
THEROOT=$PWD
cd $THEROOT
# List of Rmd files.
RMDFILES=$(find . -name \*.Rmd -print)
echo $RMDFILES
# Runs rmarkdown::render() in each Rmd file down in the tree.
for RMD in $RMDFILES; do
DIRNAME=`dirname "$RMD"`
RMDNAME=`basename "$RMD"`
cd $DIRNAME
if [[ "$DIRNAME" == "./slides" || "$DIRNAME" == "./tutoriais" ]]; then
Rscript -e "library(rmarkdown); render(\"$RMDNAME\")"
fi
cd $THEROOT
done
# # List of Rmd files.
# RMDFILES=$(find . -name \*.Rmd -print)
# echo $RMDFILES
#
# # Runs rmarkdown::render() in each Rmd file down in the tree.
# for RMD in $RMDFILES; do
# DIRNAME=`dirname "$RMD"`
# RMDNAME=`basename "$RMD"`
# cd $DIRNAME
# if [[ "$DIRNAME" == "./slides" || "$DIRNAME" == "./tutoriais" ]]; then
# Rscript -e "library(rmarkdown); render(\"$RMDNAME\")"
# fi
# cd $THEROOT
# done
# Renders the site.
Rscript -e "library(rmarkdown); render_site()"
......@@ -29,6 +29,7 @@ firefox _site/index.html
# Remove os Rmd.
rm -r --verbose _site/slides/*.Rmd
rm -r --verbose _site/slides/*.Rnw
rm -r --verbose _site/tutoriais/*.Rmd
# Visualiza a árvore de arquivos/diretórios.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment