rstudio / distill Goto Github PK
View Code? Open in Web Editor NEWDistill for R Markdown
Home Page: https://rstudio.github.io/distill/
License: Apache License 2.0
Distill for R Markdown
Home Page: https://rstudio.github.io/distill/
License: Apache License 2.0
Internationalisation features are missing. Is there a plan to to add this in order to be able translate the texts used in radix template ( Author, Authors, Affilation, Affiliations, Published, citation, Footnotes...). Just like the possibility to change chapter prefix in bookdown. Or may be I missed something ?
According to the documentation here:
You can have all posts at the top level or you can create subdirectories to create groupings of posts.
This is what I did in my test project here: https://github.com/jemus42/qm.jemu.name
Yet when I run render_site()
, none of the posts under _posts
are rendered.
In a previous iteration, I had all posts in subfolders and everything worked fine, so I'm reasonably certain that the posts themselves are fine.
I tested on recent CRAN version of radix and current GitHub version.
Am I misinterpreting the documentation?
─ Session info ────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.5.1 (2018-07-02)
os macOS 10.14
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz Europe/Berlin
date 2018-10-22
─ Packages ────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.0)
backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.0)
cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.0)
digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.0)
evaluate 0.12 2018-10-09 [1] CRAN (R 3.5.0)
fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.0)
glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.0)
htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.0)
httr 1.3.1 2017-08-20 [1] CRAN (R 3.5.0)
jemisc * 0.0.0.9000 2018-08-24 [1] local
knitr 1.20 2018-02-20 [1] CRAN (R 3.5.0)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.0)
packrat 0.4.9-3 2018-06-01 [1] CRAN (R 3.5.0)
R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.0)
radix * 0.5.0.9001 2018-10-22 [1] Github (rstudio/radix@d04f173)
Rcpp 0.12.19 2018-10-01 [1] CRAN (R 3.5.0)
remotes * 2.0.1 2018-10-19 [1] CRAN (R 3.5.0)
rmarkdown 1.10 2018-06-11 [1] CRAN (R 3.5.0)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.0)
rsconnect 0.8.8 2018-03-09 [1] CRAN (R 3.5.0)
rstudioapi 0.8 2018-10-02 [1] CRAN (R 3.5.0)
rvest 0.3.2 2016-06-17 [1] CRAN (R 3.5.0)
sessioninfo 1.1.0 2018-09-25 [1] CRAN (R 3.5.0)
stringi 1.2.4 2018-07-20 [1] CRAN (R 3.5.0)
stringr 1.3.1 2018-05-10 [1] CRAN (R 3.5.0)
usethis * 1.4.0 2018-08-14 [1] CRAN (R 3.5.0)
withr 2.1.2 2018-05-26 [1] Github (jimhester/withr@70d6321)
xml2 1.2.0 2018-01-24 [1] CRAN (R 3.5.0)
yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.0)
Really excited about this package, thanks!
It seems that hyperlinks get stripped from footnotes, which I haven't seen in other RMarkdown formats. These can be handy at times, so is it possible to have them supported?
Download the latest [RStudio](https://www.rstudio.com/products/rstudio/download/)^[Or try the [preview download](https://www.rstudio.com/products/rstudio/download/preview/)]
Download the latest RStudio^[https://www.rstudio.com/products/rstudio/download/preview/]
Include examples of output from DiagrammeR, r2d3, and vector graphics from Sketch. I can help with this.
News on CRAN URL https://cran.r-project.org/web/packages/radix/news/news.html says
radix 0.1.0 (Unreleased)
Initial release
Hi, I'm using gganimate to create .gifs in Radix, but this seems to be sub-optimal when compared to standard R Markdown- specifically the transitioning between states in the .gif created is much slower and not smooth when outputting in Radix. Is there any fix to make gifs transition optimally in Radix? Thanks
Please update to version 1.2.718 or higher at https://www.rstudio.com/products/rstudio/download/preview/
My version RStudio is "Version 1.2.1004", but I still got this error.
I think the error is because of the code
if (rstudio$version < "1.2.718")
Truly, the "1.2.1004"< "1.2.718"
is TRUE
, which shouldn't be.
When one of the posts contains a preview images, all posts are resized to fit the preview image, rather than only the posts that have a preview image.
Would it be an idea to have the width of the post title be dependent on whether that specific post has a preview image?
I've added two screenshots to show what it currently looks like and what I imagine it can look like if the width is dependent on there being a preview image.
Right now, they are uncomfortably snug with the screen edge. See here at the bottom for an example.
Maybe this is intentional too? But I don't think aside that span two paragraphs look bad.
As a quick hack, I added
@media(min-width:768px) {
aside {
margin-bottom: -500px;
}
}
I guess this could lead to problems with consecutive asides? But those don't look good, so I'm not too worried.
I find there are toc
and toc_depth
options in yaml
. Maybe number_section
function will make the toc better.
radix::radix_article:
toc: true
toc_depth: 2
number_section: yes
When I specify a relative path to a .bib file, it doesn't work.
This works:
bibliography: library.bib
This does not work:
bibliography: ../../static/bib/library.bib
I do not get an error message, but it simply does not produce the citations. An illustration of this can be seen here: https://rstudio.github.io/radix/basics.html#citations. The citation there does not show, although it does show here: https://rstudio.github.io/radix/citations.html
When I set a post to draft: true
my custom styles.css is missing and so are the general radix site styles.
Hi,
I am using site44 as hosting for my blog using dropbox. When I changed output_dir to point my site44's folder I get the following error:
Error in file.copy(from = file.path(input, files), to = output_dir, recursive = TRUE) :
more 'from' files than 'to' files
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> copy_site_resources -> file.copy
In addition: There were 17 warnings (use warnings() to see them)
Execution halted
Exited with status 1.
tried warnings()
but got nothing
I have chmod
my site44's folder to 777 to check if is a permission problem but I still get the same error.
Using "_site"
works fine but manual cmd-C -> cmd-V is killing my mojo.
Any ideas? how can I see those warnings?
I'm getting an error when I try to initialize a blog.
> create_blog(dir = "C:/R/Example",
+ title = "Something about data science")
Creating website directory C:/R/Example
Creating C:/R/Example/_site.yml
Creating C:/R/Example/index.Rmd
Creating C:/R/Example/about.Rmd
Creating C:/R/Example/_posts/welcome/welcome.Rmd
Rendering blog...
|
| | 0%
|
|................................ | 50%
ordinary text without R code
|
|.................................................................| 100%
label: setup (with options)
List of 1
$ include: logi FALSE
"C:/R/pandoc-2.3-windows-i386/pandoc" +RTS -K512m -RTS about.utf8.md --to html5 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output about.html --email-obfuscation none --standalone --no-highlight --template "C:\R\R-3.5.1\library\radix\rmarkdown\templates\radix_article\resources\default.html" --lua-filter "C:\R\R-3.5.1\library\radix\rmarkdown\templates\radix_article\resources\distill.lua" "--metadata=link-citations:true" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3462df490fhtml" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e347d2e4f9dhtml" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3419d29fahtml" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e341fb152bchtml" --include-before-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3432387a36html" --include-before-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3450173c2html" --include-before-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e34291e2chtml" --include-after-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3456da5c01html" --include-after-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e346c536db4html" --include-after-body "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e347e525b57html" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\rmarkdown-str2e34653564eb.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\username\AppData\Local\Temp\Rtmp2pPtja\file2e3432dc2731html"
Error: pandoc document conversion failed with error 5
My session info:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] radix_0.5
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 digest_0.6.16 rprojroot_1.3-2
[4] jsonlite_1.5 backports_1.1.2 magrittr_1.5
[7] evaluate_0.11 stringi_1.2.4 rstudioapi_0.7
[10] whisker_0.3-2 rmarkdown_1.10 tools_3.5.1
[13] stringr_1.3.1 yaml_2.2.0 compiler_3.5.1
[16] htmltools_0.3.6 knitr_1.20
(also, by the way, you might want to mention in the tutorials that you need pandoc to run radix!)
Currently the import_post() function will only accept a url, simply using a file location "/User/Joe/path/to/notebook.html" will not work.
This means that if I wanted to use a radix blog to create a lab notebook I would have to do all analysis inside of the Rproject set up for the blog.
I have been adding captions to my documents in radix and noticed some issues with them:
Table captions inserted using knitr::kable are formated as standard text. Would it be possible to make it so that captions inserted this way are formated like captions from fig.cap chunk option?
Table/figure numbering and naming does not work if your chunk name includes a space, underscore or point.
See attachment for simple examples :
Hello,
Thanks for the nice format. I tried changing the source code aesthetics by including some CSS
pre.d-code code.d-code {
font-family: 'Fira Mono', monospace ;
font-size: 75%;
}
but the code blocks refuse to reflect this. Am I doing something wrong?
Currently, the RSS feeds only contain title and description. I always find that annoying because it means I cannot preload blog posts to read offline in my feed reader. Of course, much of the nice layout of radix would be lost, but still, would it be possible to make the RSS feed contain the entire content (as an option)?
Really loving it so far by the way! Works very well out of the box, and easier than many alternatives I tried before.
When an image is put in a code chunk and a width smaller than the layout width is selected (either through fig.width or out.width), the final image is scaled up to take the full width of the layout. In the case of plots created by code this means the plot is created with the intented size and then scaled up - making fonts larger than intended and making the image pixelated.
I have tested this with ggplot2::ggplot and knitr::include_graphics and the issue occurs in both - makes it very hard to include small images or plots with large height/width ratios.
Hello, I am jinseob Kim.
I make my blog using radix (https://blog.anpanman.co.kr)
But, I can't show disqus comments when clicking comments button (https://blog.anpanman.co.kr/posts/2018-09-25-welcome/).
This problem is solved by changing browser's size.
There is same problem in Reproducible Finance with R(https://beta.rstudioconnect.com/content/3776/posts/2017-11-09-visualizing-asset-returns/)
But, this problem doesn't occur in TensorFlow for R blog(https://blogs.rstudio.com/tensorflow/posts/2018-09-17-eager-captioning/)
Can I solve this problem?
Sincerely.
I get the following error message when I use the metadata entry (see https://rstudio.github.io/radix/blog.html#listing-pages) to list blog posts on pages that are not index.Rmd.
Error: The collection 'posts' does not have an article listing. (try running render_site() to generate the listing)
Weirdly, as long as I use index.Rmd as a listing page, I can use other pages to list posts, but not another page by itself.
This issue is a question for which I was unsure whether to place it here, on Stack Overflow or in the R Studio Community forum. I decided to place it here and appreciate to be informed if that is inappropriate, in which case I would move it the appropriate place.
The cross-referencing capabilities for equations, tables and figures that the bookdown
package adds to the conventional Pandoc Markdown has become my favourite feature. For smaller reports, I exclusively use the html_document2
and pdf_document2
output formats.
I have played around with the radix
package and have joy using it and exploring the great new capabilities. But, I am missing the ability to use the \@ref(label)
feature with the figure label being, e.g. fig:foo
, as described in this section of the bookdown
book: https://bookdown.org/yihui/bookdown/figures.html
Is it planned to add this feature to the radix
package in the future? Is there another way that I could implement it myself?
I am using the Radix to build a blog site. Yesterday this was working beautifully but today I get an error when I try to build the site. I get the following error but am not sure where to look to fix the issue.
Error in node_append_content(x$node, value) :
Expecting a single string value: [type=list; extent=0].
Calls: <Anonymous> ... <Anonymous> -> xml_text<-.xml_node -> node_append_content
Execution halted
my site YAML is:
name: "...-code"
title: "... Code"
description: |
This is the simple code / script repository for ...
output_dir: "public"
base_url: http://...
navbar:
title: Small Scripts Repository
type: default
left:
- icon: fa-home
href: index.html
- icon: fa-info
href: about.html
- text: 'SharePoint'
href: http://.../Pages/default.aspx
right:
- icon: fa-gitlab
href: http://gitlab...
output: radix::radix_article
In navbars, one can only use text or icon to create an item, but not both. depending on the context, either the icon or the text will "win".
YAML example:
navbar:
left:
- text: "info" # text is disregarded
icon: fa-list-alt # icon is considered
href: index.html
- text: "Preprocessing" # text is considered
icon: fa-hourglass-half # icon is disregarded
menu:
- text: "Preprocessing pipeline" # text is disregarded
icon: fa-hourglass-half # icon is considered
href: pre_pipeline.html
I can see favicon in browser tab when opening main, about, contributers pages
(https://blog.anpanman.co.kr/)
But, I can't see favicon when seeing any posts
(https://blog.anpanman.co.kr/posts/2018-09-25-welcome/)
There are same problem are in https://blogs.rstudio.com/tensorflow/ and https://beta.rstudioconnect.com/content/3776/ .
Can I solve the problem?
Sincerely.
Currently, it doesn't seem possible to add links in footnotes, but that's frequently quite useful.
Thanks for the great publication format!
Currently, figures created in an R code chunk do not get a figure number in the caption, nor is the caption text formatted (unlike when an alternative text is provided in e.g. ![Figure from https://example.com](heatmap.png)
). Would it be possible to 1. output figure numbers into figure captions, and 2. format figure captions similar to how captions to ![Figure from https://example.com](heatmap.png)
images are formatted?
In section "Supporting files" the paragraph
When a blog post is published, resource files located alongside the post in it’s directory are also published.
should use its instead of it's.
First of all thanks for that great format!
I have some minor issue: some bibtex generator (in my case Zotero with better bibtex) try to protect titles against further processing from biblatex with double curly brackets. That is in complience with biblatex see BibTex FAQ Question 5. However radix displays these:
Example Bibtex file:
@article{HildebrandtExploringFactorModel2016,
title = {Exploring {{Factor Model Parameters}} across {{Continuous Variables}} with {{Local Structural Equation Models}}},
volume = {51},
issn = {0027-3171, 1532-7906},
doi = {10.1080/00273171.2016.1142856},
language = {en},
number = {2-3},
journal = {Multivariate Behavioral Research},
author = {Hildebrandt, Andrea and L\"udtke, Oliver and Robitzsch, Alexander and Sommer, Christopher and Wilhelm, Oliver},
month = may,
year = {2016},
pages = {257-258}
}
This works flawless with all other markdown formats I've been using.
If you need further information to reproduce this, please let me know.
Hi @jjallaire
I have 2 questions
When I try to share link by clicking on icons, instead of a link it gives me a '404 not found' page. But disqus plugin works fine. ("Note that the base_url field is required in order to use Disqus and sharing links.") I thought that if Disqus works then sharing links will also work.
Is it possible to include in comment section not only disqus but also facebook, twitter and etc.?
because it seems that latter ones do not work.
Hello! I can't create new blog using radix because of the following error:
Error: Radix requires Pandoc v2.0 or greator. Please update at: https://github.com/jgm/pandoc/releases/latest
I already updated pandoc here 3 times, restarted the computer and reinstalled radix from github and
I keep getting the error. Also, when I try to render my older blogs, I get:
Error: You must provide a title for Radix articles
But they where ok in the last time I tried. I'm not sure about what changed now )-:
Starting to play with radix and it is really phenomenal! Is there a way to embed author ORCID information in the metadata? If not, would love to see that as an enhancement...
This question was posted by me on stackoverflow, where it had 10 views and zero reactions:
I am trying out the new Radix for R Markdown.
The citations do not work very well for me. All titles have curly braces around them, and names with special characters are not shown correctly.
Here is an example:
---
title: "Untitled"
description: |
A new article created using the Radix format.
author:
- name: Nora Jones
url: https://example.com/norajones
affiliation: Spacely Sprockets
affiliation_url: https://example.com/spacelysprokets
date: "`r Sys.Date()`"
bibliography: bib.bib
output: radix::radix_article
---
This is the citation [@Rockstrom2009]
Using the bib.bib file:
@article{Rockstrom2009,
archivePrefix = {arXiv},
arxivId = {10.1038/461472a},
author = {Rockstr{\"{o}}m, Johan and Steffen, Will and Noone, Kevin and Persson, {\AA}sa and Chapin, F. Stuart and Lambin, Eric and Lenton, Timothy M. and Scheffer, Marten and Folke, Carl and Schellnhuber, Hans Joachim and Nykvist, Bj{\"{o}}rn and de Wit, Cynthia A. and Hughes, Terry and van der Leeuw, Sander and Rodhe, Henning and S{\"{o}}rlin, Sverker and Snyder, Peter K. and Costanza, Robert and Svedin, Uno and Falkenmark, Malin and Karlberg, Louise and Corell, Robert W. and Fabry, Victoria J. and Hansen, James and Walker, Brian and Liverman, Diana and Richardson, Katherine and Crutzen, Paul and Foley, Jonathan},
doi = {10.5751/ES-03180-140232},
eprint = {461472a},
isbn = {0028-0836},
issn = {17083087},
journal = {Nature},
keywords = {Atmospheric aerosol loading,Biogeochemical nitrogen cycle,Biological diversity,Chemical pollution,Climate change,Earth,Global freshwater use,Land system change,Ocean acidification,Phosphorus cycle,Planetary boundaries,Stratospheric ozone,Sustainability,carrying capacity,climate change,ecology,nitrogen,phosphorus,planetary boundaries},
number = {24 September 2009},
pmid = {19779433},
primaryClass = {10.1038},
title = {{Planetary boundaries: Exploring the safe operating space for humanity}},
volume = {461},
year = {2009}
}
The bib file was exported through Mendeley 1.19.2 with LaTeX escape special characters = on. Using RStudio 1.2.1060 and R 3.4.4 on a Xubuntu 64 16.04 system.
How can I make these references show correctly? I have already tried switching off LaTeX special characters. The same biographic entries work fine in LaTeX.
Many scholarly journals have very specific requirements for how to format citations in the reference section, such as the Vancouver style, etc, etc. The Citation Styling Language (CSL) is a format to take care of that formatting, and has a few thousand styles used by journals. BibTeX has such functionality too, e.g. natlib
, etc.
Please add support for this and guidance at https://rstudio.github.io/radix/citations.html#citing-other-works on how to use it.
Maybe citation.js can be of help.
Thank you for the lovely package. Are there any plans to incorporate {.tabset}
class (similar to RMarkdown) in the future?
Thanks for the nice package! Would you be willing to consider support for dates presented in a format other than %B %d, %Y
, as mentioned in https://github.com/rstudio/radix/issues/23?
Perhaps entering the date with the ISO format of YYYY-MM-DD
and allowing the user to select how it appears would be a good way forwards?
Many thanks, once again!
devtools::install_github("rstudio/radix")
Downloading GitHub repo rstudio/radix@master
from URL https://api.github.com/repos/rstudio/radix/zipball/master
Installing radix
Installing 1 package: digest
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
There is a binary version available (and will be installed) but the source version is later:
binary source
digest 0.6.17 0.6.18
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/digest_0.6.17.zip'
Content type 'application/zip' length 194418 bytes (189 KB)
downloaded 189 KB
package ‘digest’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘digest’
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
Installing 1 package: downloader
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependency ‘digest’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/digest_0.6.17.zip'
Content type 'application/zip' length 194418 bytes (189 KB)
downloaded 189 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/downloader_0.4.zip'
Content type 'application/zip' length 24742 bytes (24 KB)
downloaded 24 KB
package ‘digest’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘digest’
package ‘downloader’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
Installing 1 package: mime
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/mime_0.6.zip'
Content type 'application/zip' length 47811 bytes (46 KB)
downloaded 46 KB
package ‘mime’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
Installing 1 package: png
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/png_0.1-7.zip'
Content type 'application/zip' length 292444 bytes (285 KB)
downloaded 285 KB
package ‘png’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
Installing 1 package: rstudioapi
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rstudioapi_0.8.zip'
Content type 'application/zip' length 178816 bytes (174 KB)
downloaded 174 KB
package ‘rstudioapi’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
Downloading GitHub repo rstudio/bookdown@master
from URL https://api.github.com/repos/rstudio/bookdown/zipball/master
Installing bookdown
Installing 1 package: tinytex
Installing package into ‘C:/Users/aselr/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tinytex_0.8.zip'
Content type 'application/zip' length 87538 bytes (85 KB)
downloaded 85 KB
package ‘tinytex’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\aselr\AppData\Local\Temp\Rtmp4YMTd0\downloaded_packages
"C:/PROGRA1/R/R-351.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/aselr/AppData/Local/Temp/Rtmp4YMTd0/devtools63b452907ed0/rstudio-bookdown-d1f44e5" --library="C:/Users/aselr/Documents/R/win-library/3.5"
--install-tests
installing source package 'bookdown' ...
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'bookdown'
finding HTML links ... done
bookdown_site html
build_chapter html
calibre html
clean_book html
epub_book html
gitbook html
finding level-2 HTML links ... done
html_chapters html
html_document2 html
kindlegen html
pdf_book html
publish_book html
render_book html
resolve_refs_html html
serve_book html
** building package indices
** testing if installed package can be loaded
DONE (bookdown)
In R CMD INSTALL
"C:/PROGRA1/R/R-351.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/aselr/AppData/Local/Temp/Rtmp4YMTd0/devtools63b476a628f6/rstudio-radix-6a441ec" --library="C:/Users/aselr/Documents/R/win-library/3.5" --install-tests
ERROR: dependency 'digest' is not available for package 'radix'
From what I've been able to glean from the documentation, the only way to change the theme on a Radix site is with raw CSS code. That's a non-starter for a lot of people; is there another way to do it?
Perhaps an enhancement could be to add support for a search feature via google or duckduck go that can be updated like the rss feed. This would add more general search capability past the tag filters.
Example: _search.html
> <form method="get" action="https://duckduckgo.com/">
> <label for="search-field" class="show-for-sr">Search the site</label>
> <input type="search" name="q" maxlength="255" placeholder="Search the site" id="search-field">
> <input type="hidden" name="sites" value="https://my_website.com/"/>
> <input type="hidden" name="k7" value="#faf8f8"/>
> <input type="hidden" name="kj" value="#b33"/>
> <input type="hidden" name="ky" value="#fafafa"/>
> <input type="hidden" name="kx" value="b"/>
> <input type="hidden" name="ko" value="-1"/>
> <input type="hidden" name="k1" value="-1"/>
> <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" />
> </form>
And then an update in the _siteconfig.yml
> `name: "Blog"
> title: "Michael DeWitt"
> description: |
> Exploring the thoughts...
> output_dir: "docs"
> collections:
> posts:
> search: _search.html`
I imagine that I could tweak under the hood to get here, but it could be a nice potential option.
as I understand, most other rmarkdown formats support citations via pandoc-citeproc, which has a bunch of advantages:
@jjallaire mentioned in #24 that radix currently uses distill, which in turn uses some js bibtex parser, which might be hard to disentangle.
I'm wondering whether it might be possible/might make sense to just ignore that part of distill, and do the usual rmarkdown pandoc-citeproc dance.
I'm in no position to say whether this would sit well with the rest of distill (does it do any additional black magic to citations?).
I guess the CSS would have to change a bit to retain the hover-citations (which are great).
If so, I might try to take a whack at this.
I just think it'd be a great benefit to rmarkdown users if all rmarkdown formats behave roughly the same when it comes to these features wrapped from pandoc.
May need to fork Distill to do this. See https://github.com/rstudio/radix/issues/17
The text "If you see mistakes or want to suggest changes," cannot be customised, as far as I can tell. Allowing this would be nice for non-English websites, but in my case I'd also like to link people to an anonymous complaint box.
Hi,
Congrats on the CRAN release - I have been lurking, using this for a while; IMHO this is super-useful and looks great!
Using the new CRAN version, I get a weird problem when I put in a navbar text
item without a corresponding href
item. My use case is wanting to have headers and ---
separators in the navbar menu.
If I do something like this:
navbar:
right:
- text: "Home"
href: index.html
- text: "About"
href: about.html
menu:
- text: "header"
- text: "Thing 1"
href: index.html
- text: "Thing 2"
href: index.html
Then the html does not show up properly in the RStudio Preview window, nor at Github pages. However, it does show up locally if I open using a browser.
If I open the JavaScript console from the RStudio Preview window (or from GH pages), it gives me this error:
Uncaught TypeError: Cannot read property 'replace' of undefined
at HTMLAnchorElement.<anonymous> (index.html:1182)
at Function.each (jquery.min.js:2)
at m.fn.init.each (jquery.min.js:2)
at init_common (index.html:1181)
at init_distill (index.html:875)
at yh (webcomponents.js:234)
at webcomponents.js:235
Here are links to the working site and repository.
Here are the links to the failing site and repository.
When I put this into the YAML it throws an error
date: "r format(Sys.Date(), '%d %B, %Y')
"
Quitting from lines 2-9 ()
Error in parse(text = code, keep.source = FALSE) :
:1:29: unexpected input
1: format(Sys.Date(), ''%d %B, %Y'')
^
Calls: ... hook_eval -> withVisible -> eval -> parse_only -> parse
In addition: There were 23 warnings (use warnings() to see them)
Execution halted
It does work however with other output such as html.
If I put a code block with SQL:
```sql
SELECT *
FROM my_table
```
the contents disappear from the output. (A code block is there, but there's nothing in it.)
It doesn't appear to be SQL specific. There appears to be a list of languages that work (including r, c, cpp, java, python, julia, javascript, css) but anything else (sql, rust, haskell, d, brainfuck, ...) disappears.
Hello,
Thank you for creating this. it's very nice indeed. I do have two questions,
is there a way to change the width of the main text column? it would be nice if i could make it say 10-20% wider (and everything els changes accordingly)
can we make the text column left aligned, i.e. move the column to the left of the page rather than dead center?
Much thanks
Hi,
I am facing a problem where a {ruby, echo=TRUE}
is not displaying the code snippet in my article. R and python works fine.
Here is the link to my article
and my .Rmd
contains the following snippets:
at the top:
# path for ruby & python
knitr::opts_chunk$set(engine.path = list(
python = '~/anaconda3/bin/python',
ruby = '/Users/anegron/.rbenv/shims/ruby'
))
and then the offeding chunk:
{ruby ruby-example, echo=TRUE}
p "Hello Radix".split('')
I have tried variations of the above without success:
{r ruby-example, engine='ruby', echo=TRUE}
p "Hello Radix".split('')
knit log shows it is passing the chunk to ruby and picking up options correctly:
processing file: radix-the-joy-of-blogging.Rmd
|..... | 8%
ordinary text without R code
|.......... | 15%
label: setup (with options)
List of 1
$ include: logi FALSE
|............... | 23%
ordinary text without R code
|.................... | 31%
label: image (with options)
List of 1
$ preview: logi TRUE
|......................... | 38%
ordinary text without R code
|.............................. | 46%
label: ruby-example (with options)
List of 2
$ echo : logi TRUE
$ engine: chr "ruby"
running: /Users/anegron/.rbenv/shims/ruby -e "p \"Hello Radix\".split('')"
|................................... | 54%
ordinary text without R code
|........................................ | 62%
label: ggplot (with options)
List of 1
$ echo: logi TRUE
|............................................. | 69%
ordinary text without R code
|.................................................. | 77%
label: python-example (with options)
List of 2
$ echo : logi TRUE
$ engine: chr "python"
|....................................................... | 85%
ordinary text without R code
|............................................................ | 92%
label: unnamed-chunk-1
|.................................................................| 100%
ordinary text without R code
output file: radix-the-joy-of-blogging.knit.md
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS radix-the-joy-of-blogging.utf8.md --to html5 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output radix-the-joy-of-blogging.html --email-obfuscation none --standalone --no-highlight --template /Users/anegron/Dropbox/rpackages/radix/rmarkdown/templates/radix_article/resources/default.html --lua-filter /Users/anegron/Dropbox/rpackages/radix/rmarkdown/templates/radix_article/resources/distill.lua '--metadata=link-citations:true' --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e31eda3af3html --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e31425aed8ehtml --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e3119542f23html --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e316d2ff494html --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e316e4666e4html --include-before-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e31271d7200html --include-before-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e31c1bd86bhtml --include-before-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e3156a5992chtml --include-after-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e317534eeefhtml --include-after-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e312fcfffbehtml --include-after-body /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e317c160bcchtml --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/rmarkdown-str12e31b60bdb9.html --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /var/folders/nq/4_r9thys78bcct7vww6sbwdw0000gn/T//Rtmp19Vzer/file12e312c50ffc8html
Output created: /Users/anegron/projects/blog/_site/posts/2018-10-04-radix-the-joy-of-blogging/index.html
Nice work done! Keep up the good work!
here is my session info:
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 lattice_0.20-35 lubridate_1.7.4 packrat_0.4.9-3 digest_0.6.15 rprojroot_1.3-2 mime_0.5
[8] grid_3.5.0 jsonlite_1.5 backports_1.1.2 magrittr_1.5 evaluate_0.10.1 stringi_1.2.2 rstudioapi_0.7
[15] Matrix_1.2-14 xml2_1.2.0 reticulate_1.10 rmarkdown_1.10 tools_3.5.0 stringr_1.3.1 markdown_0.8
[22] yaml_2.1.19 rsconnect_0.8.8 compiler_3.5.0 radix_0.5 htmltools_0.3.6 knitr_1.20
Thanks for this package.
Do you have any plan for adding an option for a fixed / sided TOC, i.e. a way to have always access to the TOC without scrolling?
A similar feature is provided by the "readthedown" format provided by rmdformat
(cf. https://cdn.rawgit.com/juba/rmdformats/master/resources/examples/readthedown/readthedown.html#).
For a long article/report, it is very helpful as it allows to easily navigate through the document.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.