我在R中使用bookdown,我有些部分只想出现在HTML (gitbook)版本(而不是PDF版本)中。
我知道is_html_output(),但这似乎不是我想要的,除了非常简单的一些文本之外,它不起作用。因此,这是可行的:
`r if (knitr:::is_html_output())'
## Some text {-}
Things to say to HTML readers.
'
`
但是,由于don't中的勾选,这不能(不编译):
`r if (knitr:::is_html_output())'
## Some text {-}
Thing
我读了这个问题:。我想这样做,我有这些文件夹和文件:
index.php
items/
items/index.php
当我搜索"items/general“时,items/index.php会处理它,而不是index.php。我尝试在/items/. .htacces中创建一个.htacces文件,如下所示:
RewriteEngine On
RewriteRule ^/?$ items/index.php [L]
但是,当我搜索"items/general“时,会出现404错误,如下所示:
Not Found
The requested URL was not foun