-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44ad6b2
commit ba70e83
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: "Test" | ||
author: "Changcheng Li" | ||
date: "2017/9/23" | ||
output: github_document | ||
--- | ||
|
||
## Use JuliaCall as Julia Engine in R Markdown | ||
|
||
To use `JuliaCall` package for julia engine in R Markdown document. | ||
Just set the engine for julia to `JuliaCall::eng_juliacall` like this: | ||
|
||
```{r setup} | ||
knitr::knit_engines$set(julia = JuliaCall::eng_juliacall) | ||
``` | ||
|
||
```{julia} | ||
abc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: "Test" | ||
author: "Changcheng Li" | ||
date: "2017/9/23" | ||
output: github_document | ||
--- | ||
|
||
## Use JuliaCall as Julia Engine in R Markdown | ||
|
||
To use `JuliaCall` package for julia engine in R Markdown document. | ||
Just set the engine for julia to `JuliaCall::eng_juliacall` like this: | ||
|
||
```{r setup} | ||
knitr::knit_engines$set(julia = JuliaCall::eng_juliacall) | ||
``` | ||
|
||
```{r} | ||
library(JuliaCall) | ||
julia_command("abc") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
context("rmd error test") | ||
|
||
test_that("test error throwing in rmd", { | ||
skip_on_cran() | ||
skip_on_appveyor() | ||
|
||
tmp <- tempfile(fileext = ".md") | ||
expect_error(rmarkdown::render(test_path("Rmd_error_test.Rmd"), | ||
output_file = tmp)) | ||
expect_error(rmarkdown::render(test_path("Rmd_error_test1.Rmd"), | ||
output_file = tmp)) | ||
}) |