Coder Social home page Coder Social logo

Comments (7)

kevinushey avatar kevinushey commented on August 24, 2024 2

I've reproduced the issue there; it is indeed an RStudio issue and we'll try to dig in further!

from knitr-examples.

yihui avatar yihui commented on August 24, 2024 1

Okay. This issue belongs to the RStudio IDE and R Markdown Notebooks, so support.rstudio.com may be a better place to report it. Thanks!

from knitr-examples.

yihui avatar yihui commented on August 24, 2024

The error message looks weird to me. knitr does not write the bash code to a file before executing it. How exactly did you compile this document? I feel you might be using R Markdown Notebooks.

from knitr-examples.

biociao avatar biociao commented on August 24, 2024

Yes, but then I tried md_document, html_codcument, word_document and ioslides_presentation, none of them worked. Below shows the minimal Rmd file to generate my error.

---
title: "process"
output: md_document
---
```{bash} 
echo hello world
echo 'a b c' | sed 's/ /\|/g'
```
bash: C:\Users\MyName\AppData\Local\Temp\RtmpmouNnD\chunk-code46b81ccd775f.: No such file or directory

And I can see nothing newly produced in the RtmpmouNnD directory.

from knitr-examples.

yihui avatar yihui commented on August 24, 2024

You didn't actually answer my question: how exactly did you compile this document? The Knit button on the RStudio IDE toolbar? Command-line? The toolbar above the code chunk? I wouldn't expect the last approach to work.

from knitr-examples.

biociao avatar biociao commented on August 24, 2024

Now I understand. The error occurred when I click any kind of 'run' button in the 'Run' menu on the RStudio IDE toolbar.

Command-line or type render(input="README.Rmd") in RStudio both work well.

from knitr-examples.

kevinushey avatar kevinushey commented on August 24, 2024

@Scelta: do you see this same issue in the RStudio preview release?

from knitr-examples.

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.