@yihui
hello, 反馈一个新的错误
重新安装了旧版本的reticulate 1.22之后, 可以正常在Rstudio, rmd, qmd运行Python代码了.
现在的问题是完全一样的代码块在rmd文件可以顺利knit, 在qmd文件里就无法render.
新建了一个hello.qmd和hello.rmd文件在D盘根目录,代码块是一样的, 含有Python和R块各一个.
---
title: "Untitled"
format: html
editor: visual
---
`
{python}
print('this is python cell')
`
`
{r}
print('this is r cell')
`
以下的所有情况在knit hello.rmd文件时候, 均正常, 唯独在render hello.qmd时候会有一个错误
- 文件里只有R代码快, 均可以正常knit和render
- 文件里只有python代码快, 均可以正常knit和render
- 既有R,又有Python代码块时候的, render .qmd就会报错了
processing file: hello.qmd
|.............. | 20%
ordinary text without R code
|............................ | 40%
label: unnamed-chunk-1 (with options)
List of 1
$ engine: chr "python"
Quitting from lines 8-9 (hello.qmd)
错误: lexical error: invalid char in json text.
D:\>doskey net=abc D:\>cls
(right here) ------^
终止
不是很确定是quarto的问题, 还是reticulate进行Python,r 交互的问题.