blogdown | Create Blogs and Websites with R Markdown

 by   rstudio R Version: v1.17 License: No License

kandi X-RAY | blogdown Summary

kandi X-RAY | blogdown Summary

blogdown is a R library typically used in Utilities, Jekyll applications. blogdown has no bugs, it has no vulnerabilities and it has medium support. You can download it from GitHub.

The goal of the blogdown package is to provide a powerful and customizable website output format for R Markdown. Use dynamic R Markdown documents to build webpages featuring:. By default, blogdown uses Hugo, a popular open-source static website generator, which provides a fast and flexible way to build your site content to be shared online. Other website generators like Jekyll and Hexo are also supported. A useful feature of blogdown sites, compared to other R Markdown-based websites, is that you may organize your website content (including R Markdown files) within subdirectories. This makes blogdown a good solution not just for blogging or sites about R — it can also be used to create general-purpose websites to communicate about data science, statistics, data visualization, programming, or education.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              blogdown has a medium active ecosystem.
              It has 1619 star(s) with 335 fork(s). There are 72 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 24 open issues and 565 have been closed. On average issues are closed in 30 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of blogdown is v1.17

            kandi-Quality Quality

              blogdown has 0 bugs and 0 code smells.

            kandi-Security Security

              blogdown has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              blogdown code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              blogdown does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              blogdown releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 103 lines of code, 0 functions and 7 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of blogdown
            Get all kandi verified functions for this library.

            blogdown Key Features

            No Key Features are available at this moment for blogdown.

            blogdown Examples and Code Snippets

            No Code Snippets are available at this moment for blogdown.

            Community Discussions

            QUESTION

            Error: C stack usage is too close to the limit at R startup
            Asked 2022-Mar-28 at 19:26

            Everytime I open a new session in RStudio, I'm greeted with the error message:

            ...

            ANSWER

            Answered 2022-Mar-28 at 19:26

            Your user .Rprofile file is loading itself recursively for some reason:

            Source https://stackoverflow.com/questions/71641315

            QUESTION

            save_kable() in R does not compile LaTeX table
            Asked 2022-Mar-20 at 00:14

            I'm working on a convenience function in R that prints a publication quality LaTeX table from some common model objects. It all works just great for me on my Mac, but I've built it largely for a colleague who's on a PC, for whom the file writing fails when calling save_kable() from the kableExtra package.

            We get no output whatsoever from this. No pdf and no error messages.

            A simple reproducible example, which fails in the same way, is as follows:

            ...

            ANSWER

            Answered 2022-Mar-20 at 00:14

            The problem turned out to be missing LaTeX dependencies. The kableExtra package creates a .tex file with a long list of required packages (see below), but MikTex, the Tex distribution we were using, was unable to automatically install them, and the errors didn't propagate through to R. Here is a post with some useful details.

            There are a number of solutions, each for a different distribution.

            1. Use TexLive, rather than MikTex. I use TexLive on my Mac, and it appears to have no trouble locating and installing the dependencies. The downside is that it's gigantic (>7GB to MikTex's <1GB).

            2. For MikTex, you can get the packages downloaded with a combination of two approaches. First, set keep_tex = TRUE in kableExtra::save_kable(), which should produce the .tex file for compilation. Next, compile it at the command line with xelatex yourtable.tex. You can't use latex yourtable.tex, since this compiler can't work with the required fontspec package. This may download all that you need. If it doesn't, check the log file for a missing .sty file: we needed to manually download the tabu package. You can manually install the missing files from MikTex Console: Packages > Search for "tabu" > "+" to install. Rinse, repeat until you have all the packages you need. You could do this for all the dependencies, but there are a lot, so might as well let the compiler do as much work as possible first, then backfill as needed.

            3. Compile with TinyTex in R. Create the .tex file as above (`keep_tex = TRUE'). Then:

            Source https://stackoverflow.com/questions/71403688

            QUESTION

            Programmatically add tags to yaml header during knitting R markdown file
            Asked 2022-Feb-21 at 20:13

            I'd like to programmatically add tags to the YAML header of a blogdown post when clicking the "knit" button.

            For example something like this:

            ...

            ANSWER

            Answered 2022-Feb-21 at 20:13

            To generate a valid YAML array, you could use the alternative syntax [ ], e.g.,

            Source https://stackoverflow.com/questions/71085925

            QUESTION

            Syntax Highlighting in Hugo with blogdown in Rmarkdown
            Asked 2022-Jan-13 at 22:02

            I'm using blogdown and the lxndrblz/anatole theme to create a blog. The blog should have usual syntax highlighting, which should be supported.

            When I create a new post in markdown (not Rmarkdown!) like the following, it works as expected.

            Eg index.md (not Rmd!)

            ...

            ANSWER

            Answered 2022-Jan-13 at 22:02

            You can let .Rmd generate .md output instead of the default .html by setting options(blogdown.method = 'markdown') in your .Rprofile. See this section in the blogdown book.

            Then restart R, delete index.html, and serve the site again.

            Source https://stackoverflow.com/questions/70699478

            QUESTION

            Custom fonts not updating in params in Hugo via Blogdown
            Asked 2022-Jan-11 at 19:35

            So I have been learning Blogdown to build my personal data blog: https://data-issues.netlify.app/

            Built with the academic theme, I did change the colors with no issue.

            I am making some changes in my params.yaml file but no changes I make here are happening. I but it seems like its identical to everything I've seen online.

            So here is an excerpt from my params.yaml file.

            ...

            ANSWER

            Answered 2022-Jan-11 at 19:35

            There seems to be an error in the URL that you are using.

            Can you try replacing the google_fonts parameter in datavision_fonts.toml with the following ?

            Source https://stackoverflow.com/questions/70637655

            QUESTION

            How to center an image using blogdown?
            Asked 2022-Jan-08 at 10:05

            So I am building my first data blog with RStudio and Blogdown and I am seriously stuck on something small but infuriating.

            https://data-issues.netlify.app/

            Above is the site I am building. I made a logo for it but I would like to make this centered. How would I do so in my markdown (.md) file.

            Code here:

            ...

            ANSWER

            Answered 2022-Jan-08 at 10:05

            As @YihuiXie said in the comment section below, you don't really need to use a shortcode for raw HTML, there are multiple solutions that you can use.

            Edit your config to use raw HTML in Markdown

            In your config.toml enter:

            Source https://stackoverflow.com/questions/70625593

            QUESTION

            How can I create an .md file from a .Rmd file in order to create a TOC in hugo-Apero theme?
            Asked 2021-Dec-22 at 19:07

            I am completely new to Rmarkdown and blogdown and I am having a hard time understanding how does .markdown, .Rmarkdown, .Rmd et .md etc... files are produced and, in some ways, are different working with Rstudio.

            To be more specific, I am building a website with Hugo Apéro theme in Rstudio, hence with blogdown and Rmarkdown files.

            I want to create a series of blogposts related to one another and with the TOC on the left side of the page just like Alison Hill did in her own blog here

            In theory, this is not so hard and I managed to write the firsts blog posts in my own series with some math equations and everything that I wanted with some .Rmd files.

            This is were it gets tricky, when I knit the said .Rmd files it produces only one .html file. I cannot find a way to produce the .md file necessary for hugo and/or blogdown (I do not really know what does what up to here) to produce the TOC of one specific blogpost. Looking at Alison Hill's blog posts it corresponds to the On this page TOC.

            I know that Rstudio v2 need some work around to produce the .html and .md file (see this very specific question here) however, none of the proposed solutions seem to work for me.

            I managed to produce an .markdown file from a .Rmarkdown file which render the TOC like I want, however, .Rmarkdown files are not the best for math rendering, (see Creating Websites with R Markdown - Ch1.5), are not created in Rstudio etc... which does not make me want to use this format (maybe that is a mistake ?)

            The absence of TOC in the final page seem related to another element : a headers link button. Still, looking at Alison Hill's blog posts I notice a link button next to each headers that I do not have if I work with .Rmd file (which produce only .html file) but they appears with the .Rmarkdown file (which produce only .md file)

            So I guess my question is :

            1. How can I include a TOC from the .Rmd file ?

            2. How can I create a .md file from .Rmd file in Rstudio ? and why none of these solutions work for me :

              • use the argument keep_md = TRUE in html_document()
              • call rmarkdown::render() with clean = FALSE
              • Use md_document as one of your output formats

            Also, in working on my blog post I wanted to create pannelsets like in Hugo Apero documentation and it does not work with the first syntax in a .Rmd file :

            ...

            ANSWER

            Answered 2021-Dec-22 at 19:07

            To generate .md from .Rmd posts, you need to set

            Source https://stackoverflow.com/questions/70435889

            QUESTION

            blogdown::serve_site() fails to produce template site
            Asked 2021-Dec-21 at 04:29

            I've been following the instructions here to install the R blogdown package and get my new site running. When I get to the step where I run serve_site(), I get the following error message:

            ...

            ANSWER

            Answered 2021-Dec-21 at 04:29

            The config file is config/_default/config.yaml in your website project. Add

            Source https://stackoverflow.com/questions/70429317

            QUESTION

            Image scoping issue when using Wowchemy Hugo Academic and Blogdown workflow
            Asked 2021-Dec-16 at 12:09

            I was following ApresHill's amazingly helpful blog post for creating my website. I have a question regarding the image scoping, I would appreciate it if someone can shed some light. Wowchemy tutorial says the images can be placed under /assets/media/ folder starting with Wowchemy v5.1. Prior to this release, they were to be found under static folder.

            My question has to do with the difference in scoping when I'm referring to an image in the yaml front matter or within the post itself. In short, YAML headers scope for images in /assets/media/ while post bodies scope for images in static/media/:

            Let the image paths be: /assets/media/IMG_IN_ASSETS_MEDIA_FOLDER.jpg /static/media/IMG_IN_STATIC_MEDIA_FOLDER.jpg

            ...

            ANSWER

            Answered 2021-Dec-16 at 12:09

            As I heard in the R Studio Community, this may be due to differences in where Hugo or Blogdown looks for images. It also explains why the shortcode worked for inserting an image from the assets folder.

            Source https://stackoverflow.com/questions/70359193

            QUESTION

            blogdown: 'system3' is not an exported object from 'namespace:xfun'
            Asked 2021-Dec-15 at 14:19

            On Windows 10, I am getting the following error with blogdown::new_site() function:

            Hugo has been installed to "C:\Users\hp\AppData\Roaming\Hugo\0.89.4". You are recommended to set options(blogdown.hugo.version = "0.89.4") in the .Rprofile file in your website project. See the blogdown book for more info on .Rprofile: https://bookdown.org/yihui/blogdown/global-options.html

            Error: 'system3' is not an exported object from 'namespace:xfun'

            I'm wondering what am I missing here? Any hints.

            sessionInfo()

            ...

            ANSWER

            Answered 2021-Dec-01 at 14:29

            I don't know how you managed to install the dev version of blogdown without installing the dev version of xfun at the same time, since the latter is required (as specified in DESCRIPTION). Per installation instruction in README, this is how you install the dev version of blogdown:

            Source https://stackoverflow.com/questions/70181218

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install blogdown

            You can install the package via CRAN as follows:.

            Support

            There are two main places to get help:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular R Libraries

            ggplot2

            by tidyverse

            awesome-R

            by qinwf

            shiny

            by rstudio

            dplyr

            by tidyverse

            swirl_courses

            by swirldev

            Try Top Libraries by rstudio

            shiny

            by rstudioR

            cheatsheets

            by rstudioHTML

            rstudio

            by rstudioJava

            bookdown

            by rstudioJavaScript

            rmarkdown

            by rstudioR