Code Monkey home page Code Monkey logo

Comments (6)

panr avatar panr commented on May 28, 2024

R is available since yesterday ;-)

from hugo-theme-hello-friend.

dsolito avatar dsolito commented on May 28, 2024

Ha... doesn't seem to work. Perhaps the .Rmarkdown format is the cause?
Check here : www.davidsolito.com

from hugo-theme-hello-friend.

dsolito avatar dsolito commented on May 28, 2024

I don't see prism in my page header… I miss something?

from hugo-theme-hello-friend.

panr avatar panr commented on May 28, 2024

@dsolito have you tried wrapping R code like this:

```r
  [code]
```

?

from hugo-theme-hello-friend.

dsolito avatar dsolito commented on May 28, 2024

I work with rstudio and what I understand is that it depends on the type of markdown document I use.
I work in .rmd format and blogdown (package to build the site) generate the html.

But if you look at the html page, the code is inside

image

Details :

You cannot execute any R code in a plain Markdown document, whereas in an R Markdown document, you can embed R code chunks ({r}). However, you can still embed R code in plain Markdown using the syntax for fenced code blocks r (note there are no curly braces {}). Such code blocks will not be executed and may be suitable for pure demonstration purposes. Below is an example of an R code chunk in R Markdown:

``` {r cool-plot, fig.cap='A cool plot.'}
plot(cars, pch = 20) # not really cool
```

And here is an example of an R code block in plain Markdown:

```r
1 + 1 # not executed
```

from hugo-theme-hello-friend.

panr avatar panr commented on May 28, 2024

@dsolito As far as I understand, R Studio is parsing markdown files differentely than Hugo, additionally Prism won’t catch {r} syntax out of the box... Maybe you should fork Prism library and modify it for your case 🤔

If I’m wrong and this could be issue with my theme code, please create PR with necessary modifications 😉

from hugo-theme-hello-friend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.