rstudio

R学习笔记-安装R和RStudio,注意RStudio的版本需要与操作系统版本匹配

删除回忆录丶 提交于 2020-12-18 11:50:55
1、安装步骤:先安装R,再安装RStudio RStudio是R的集成开发工具,本身不带R环境。 2、从当前R的官网和RStudio下载的R和RStudio的版本分别为: A .For Windows R-3.5.3-win.exe RStudio-1.2.1335.exe R-3.5.3-win.exe无论是在Win7上还是Win10上都可以顺利安装,也能正常使用,但RStudio-1.2.1335.exe在Win7上安装后,打开报错,在Win10上可以正常安装使用。 解决办法: 下载早期版本的RStudio在Win7上安装。 https://www.rstudio.org/download/daily/desktop/ 这里下载的是RStudio-1.1.462.exe 在Win7上很顺利安装,可以正常启动使用。 B.For MacOS 当前官网上下载的For MacOS的版本,RStudio无法安装在MacOSX 10.11及以下版本的操作系统里,只能安装在MacOS10.12+的操作系统里 解决办法,同样下载早期版本的RStudio,进行安装,经测试,可以正常安装和使用。 同样可从上面给的网址下载:https://www.rstudio.org/download/daily/desktop/ 来源: oschina 链接: https://my.oschina.net/u

How to set back RStudio to global default working directory?

人走茶凉 提交于 2020-12-15 05:38:32
问题 In the General R Options of RStudio, in the option Default working directory (when not in a project): , previous to set for the first time a specific directory appears this symbol ~ that means No directory or Global default working directory, like here: My problem is that I set the directory to My documents folder, and I can't set it back to ~ because the Browse button doesn't allow it. Do you know how can I set it back to ~ ? I would like to do that because in my new scripts I'm changing

How to set back RStudio to global default working directory?

六月ゝ 毕业季﹏ 提交于 2020-12-15 05:37:59
问题 In the General R Options of RStudio, in the option Default working directory (when not in a project): , previous to set for the first time a specific directory appears this symbol ~ that means No directory or Global default working directory, like here: My problem is that I set the directory to My documents folder, and I can't set it back to ~ because the Browse button doesn't allow it. Do you know how can I set it back to ~ ? I would like to do that because in my new scripts I'm changing

R Sweave (Rnw) won't produce a PDF file - exit code 1

只谈情不闲聊 提交于 2020-12-15 05:16:32
问题 I've recently been learning how to use sweave in R to create PDF files out of Rstudio, and my machine has suddenly stopped being able to create a PDF using sweave. It can still create PDFs in rMarkdown, but it gives the exit code one when it fails to do so in sweave. There are maybe a dozen questions that I've found online that ask similar questions, but none of the answers have helped. I've tried changing the %PATH% in my environment window, I've uninstalled and reinstalled rStudio and

R语言统计分析微生物组数据

跟風遠走 提交于 2020-12-14 22:23:09
我在学习这本书记了一些笔记,如果你有学习,欢迎分享你的笔记或者教程。我的已有笔记汇总如下: 宏基因组学习笔记 宏基因组学习笔记2 宏基因组笔记(第二章) R语言宏基因组学统计分析学习笔记(第三章-1) R语言宏基因组学统计分析学习笔记(第三章-2) https://link.springer.com/book/10.1007/978-981-13-1534-3 下载方法,sci-hub大法啦。 出版日期:2018年10月7日 以下内容转载自宏基因组微信公众 号,由于没有 原创 声明,直接复制转载 。 本书简介 这本独特的书解决了使用R语言的微生物组数据的统计建模和分析中的困难。它包括作者研究和公共领域的真实数据,并对R的实现进行了逐步的讨论。数据和R计算机程序是公开的,允许读者复制每一章介绍的模型开发和数据分析,以便这些新方法可以很容易地应用到自己的研究中。 本书还讨论了微生物组研究中统计建模和数据分析的最新进展,以及新一代测序技术的最新进展,以及方法学发展和应用中的大数据。这本及时的书将大大有利于所有读者参与微生物群,生态学和微阵列数据分析,以及其他领域的研究。 作者简介 Yinglin Xia 1 , Jun Sun 2 , Ding-Geng Chen 3 伊利诺伊大学芝加哥分校,医学部(Department of Medicine, University of

How to make plots appear in Rmarkdown file instead of viewer pane when working with keras in Rstudio?

﹥>﹥吖頭↗ 提交于 2020-12-13 03:17:21
问题 I am new in R and trying keras in Rstudio . All the accuracy , loss interactive plots by running fit() are appearing in Viewer pane instead of Rmarkdown file. All other plots usually plot inside Rmarkdown files but not with keras. I have also checked Global settings in Rstudio Tools>Global Options>R Markdown>Show output preview in "Window" . How do I make them plot in Rmarkdown instead of Viewer Pane. How do I make this mandatory for all plots to create inside Rmarkdown files only and now in

How to make plots appear in Rmarkdown file instead of viewer pane when working with keras in Rstudio?

无人久伴 提交于 2020-12-13 03:15:40
问题 I am new in R and trying keras in Rstudio . All the accuracy , loss interactive plots by running fit() are appearing in Viewer pane instead of Rmarkdown file. All other plots usually plot inside Rmarkdown files but not with keras. I have also checked Global settings in Rstudio Tools>Global Options>R Markdown>Show output preview in "Window" . How do I make them plot in Rmarkdown instead of Viewer Pane. How do I make this mandatory for all plots to create inside Rmarkdown files only and now in

How to make plots appear in Rmarkdown file instead of viewer pane when working with keras in Rstudio?

我是研究僧i 提交于 2020-12-13 03:15:24
问题 I am new in R and trying keras in Rstudio . All the accuracy , loss interactive plots by running fit() are appearing in Viewer pane instead of Rmarkdown file. All other plots usually plot inside Rmarkdown files but not with keras. I have also checked Global settings in Rstudio Tools>Global Options>R Markdown>Show output preview in "Window" . How do I make them plot in Rmarkdown instead of Viewer Pane. How do I make this mandatory for all plots to create inside Rmarkdown files only and now in

R - Rstudio - make R play a sound if warning/error generated

一世执手 提交于 2020-12-12 12:32:10
问题 I am running a script that loops over a list of stock pair combinations... occasionally the script stops running due to an error generated by differing data lengths between pair combo and I simply remove the mismatched stock from consideration): Error in model.frame.default(formula = stckY ~ stckX + 0, drop.unused.levels = TRUE) : variable lengths differ (found for 'stckX') Is there any way I can make R / Rstudio play a sound when the error message occurs so that I can be alerted without

gc() and rm(list=ls()) and restarting doesn't clear memory

爱⌒轻易说出口 提交于 2020-12-09 06:35:15
问题 I was doing data wrangling with Rstudio, and while I was doing something with a very large dataset, the process died. I restarted the computer, but ever since Rstudio has not been responsive or slow due to memory limits (currently, it's occupying 8gb of my 16gb RAM). I tried doing all the standard things I found on Stackoverflow. gc() and gc(reset=T) rm(list = ls()) .rs.restartR() Restart my computer. But when I open Rstudio, the memory usage would quickly climb and make the entire thing