我试图在ubuntu上安装一个quarto扩展,但出现以下错误:
$ quarto install extension quarto-ext/grouped-tabsets
ERROR: Too many arguments: quarto-ext/grouped-tabsets
有趣的是,我找不到install
的论点:
$ quarto -h
Usage: quarto
Version: 0.9.522
Description:
Quarto CLI
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
Commands:
render [input] [args...] - Render input file(s) to various document types.
preview [file] [args...] - Render and preview a document or website project.
serve [input] - Serve a Shiny interactive document.
create-project [dir] - Create a project for rendering multiple documents
convert <input> - Convert documents to alternate representations.
pandoc [args...] - Run the version of Pandoc embedded within Quarto.
run [script] [args...] - Run a TypeScript, R, Python, or Lua script.
tools <command> [tool] - Installation and update of ancillary tools.
check [target] - Verify correct functioning of Quarto installation.
help [command] - Show this help or the help of a sub-command.
但我找不到任何其他选择来通过quarto命令行工具安装扩展。有人有什么建议吗?
文档表明您需要Quarto v1.0.15或更高版本才能安装扩展。
你可以在这里找到最新的稳定版本。
或者,要在Ubuntu/Mac上安装开发版本,您应该删除当前安装,然后运行:
git clone https://github.com/quarto-dev/quarto-cli
cd quarto-cli
./configure.sh
在Windows上,这将是:
git clone https://github.com/quarto-dev/quarto-cli
cd quarto-cli
./configure.cmd
如果你在过去已经安装了开发版本,你可以简单地通过导航到父文件夹并运行来更新它
cd quarto-cli
git pull