当前位置:网站首页>If you ask me about R code debugging, I will tell you head, STR, help
If you ask me about R code debugging, I will tell you head, STR, help
2022-07-07 04:50:00 【Mrrunsen】
RMardkown Your code can be more finely controlled when rendering , Such as whether the code is running 、 Whether or not shown 、 How to display 、 Whether the text is output 、 How to output 、 Whether the picture shows 、 How to display and so on .
Detailed information can be referred to Knitr Of Chunk options:https://yihui.org/knitr/options/. Here we mainly show the common format control based on personal experience .
I Code
eval
Whether to run code block , Some code blocks are not running , Just for display .
RMarkdown The code option for is to accept R Variable , Therefore, you can control whether a code block is executed according to specific conditions .
Below RMarkdown On behalf of isShow Is the result greater than 0 To decide whether to execute the second code block .
```{r,include = FASLE}
isShow <- rnorm(1) > 0
```
```{r, eval = isShow}
{eval some code}
```
echo
Whether to show the code block in the result , The code shown below indicates that it is not in the result file ( Such as html file ) Display code in , But it will show the results of the code : Text or pictures, etc .
```{r, echo = FALSE}
{eval some code}
```
tidy
Whether to format when displaying code , If TRUE, Then you can use formatR format R Code : transfer
边栏推荐
- MySQL split method usage
- 这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩
- Detect when a tab bar item is pressed
- 过气光刻机也不能卖给中国!美国无理施压荷兰ASML,国产芯片再遭打压
- Lessons and thoughts of the first SQL injection
- What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
- 一图看懂!为什么学校教了你Coding但还是不会的原因...
- B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
- Wechat can play the trumpet. Pinduoduo was found guilty of infringement. The shipment of byte VR equipment ranks second in the world. Today, more big news is here
- 微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
猜你喜欢
案例大赏:英特尔携众多合作伙伴推动多领域AI产业创新发展
[team learning] [phase 34] Baidu PaddlePaddle AI talent Creation Camp
Lessons and thoughts of the first SQL injection
Mathematical analysis_ Notes_ Chapter 10: integral with parameters
Read of shell internal value command
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
The root file system of buildreoot prompts "depmod:applt not found"
How does vscade use the built-in browser?
Camera calibration (I): robot hand eye calibration
Have you got the same "artifact" of cross architecture development praised by various industry leaders?
随机推荐
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
一图看懂!为什么学校教了你Coding但还是不会的原因...
广告归因:买量如何做价值衡量?
各路行业大佬称赞的跨架构开发“神器”,你get同款了吗?
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
sscanf,sscanf_ S and its related usage "suggested collection"
MySQL split method usage
英特尔与信步科技共同打造机器视觉开发套件,协力推动工业智能化转型
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
《原动力 x 云原生正发声 降本增效大讲堂》第三讲——Kubernetes 集群利用率提升实践
Mathematical analysis_ Notes_ Chapter 10: integral with parameters
Digital chemical plants realize the coexistence of advantages of high quality, low cost and fast efficiency
A series of shortcut keys for jetbrain pychar
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
抖音或将推出独立种草社区平台:会不会成为第二个小红书
每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报
Fiance donated 500million dollars to female PI, so that she didn't need to apply for projects, recruited 150 scientists, and did scientific research at ease!
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
ESG全球领导者峰会|英特尔王锐:以科技之力应对全球气候挑战
微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此