我经常使用其他未导出的包中的实用程序类型函数:
pkg:::fun().我想知道我是否可以在我自己的R包中的新功能/范围内使用这样的功能.这里的正确方法是什么?包含在我的描述文件中的包够吗?
我有一个本地数据库,我dplyr用来连接它:
test_db <- src_sqlite("~/db/test_db.sqlite3")
Run Code Online (Sandbox Code Playgroud)
我想列出所有表格test_db.
有没有办法做到这一点?
highlight.js使用 html_document 时,我可以在 RMarkdown 前端指定样式吗?
而不是使用pandoc's espressohighlighting 说我想要highlight.js's tommorrowhighlithing 它住在这里
---
title: "Untitled"
output:
html_document:
highlight: espresso
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R …Run Code Online (Sandbox Code Playgroud) :target:<!DOCTYPE html>
<html>
<head>
<style>
:target {
border: 2px solid #D4D4D4;
background-color: #e5eecc;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p><a href="#news1">Jump to New content 1</a></p>
<p><a href="#news2">Jump to New content 2</a></p>
<p>Click on the links above and the :target selector highlight the current active HTML anchor.</p>
<p id="news1"><b>New content 1...</b></p>
<p id="news2"><b>New content 2...</b></p>
<p><b>Note:</b> Internet Explorer 8 and earlier versions do not support the :target selector.</p>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
当你点击a引用另一个元素的nchor时,它会 …