cran

Names of R's available packages

微笑、不失礼 提交于 2019-12-17 16:16:07
问题 I'm eager to know, how many package names on CRAN have two, three, N characters? which combinations have not yet been used ("unpoppler") how many package names use full-caps, or camelCase? how many package names end in 2? I think it might reveal some interesting facts. Edit: bonus points for animated graphics showing the time-evolution of CRAN packages. 回答1: A better way than scraping a web page to get the names of packages is to use the available.packages() function and process those results

How to tell CRAN to install package dependencies automatically?

自闭症网瘾萝莉.ら 提交于 2019-12-17 08:36:06
问题 I develop a package in R and when I check and build it in my local computer it works properly. But when I tried it in CRAN, I get a package dependencies error. My package depends on two functions of other packages. If I list the other packages under the description using Depends or imports , will it be automatically installed with the new package? Or do I need to explicitly invoke the function install.packages("packagename") under the function that I've used the other packages. if this all is

Set default CRAN mirror permanent in R

我只是一个虾纸丫 提交于 2019-12-17 05:53:23
问题 How can I set a specific CRAN mirror permanently in R? I want to set it permanently in my laptop so that when I do install.packages() , it won't ask me again which mirror to choose. 回答1: You can set repos in your .Rprofile to restore your choice every time you start R Edit: to be more precise: Add options(repos=structure(c(CRAN="YOUR FAVORITE MIRROR"))) to your .Rprofile Alternatively, you can set the mirror site-wide in your Rprofile.site . The location of the file is given by ?Startup : The

Set default CRAN mirror permanent in R

﹥>﹥吖頭↗ 提交于 2019-12-17 05:52:10
问题 How can I set a specific CRAN mirror permanently in R? I want to set it permanently in my laptop so that when I do install.packages() , it won't ask me again which mirror to choose. 回答1: You can set repos in your .Rprofile to restore your choice every time you start R Edit: to be more precise: Add options(repos=structure(c(CRAN="YOUR FAVORITE MIRROR"))) to your .Rprofile Alternatively, you can set the mirror site-wide in your Rprofile.site . The location of the file is given by ?Startup : The

Cluster one-dimensional data optimally? [closed]

旧时模样 提交于 2019-12-17 05:03:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Does anyone have a paper that explains how the Ckmeans.1d.dp algorithm works? Or: what is the most optimal way to do k-means clustering in one-dimension? 回答1: Univariate k-means clustering can be solved in O(kn) time (on already sorted input) based on theoretical results on Monge matrices, but the approach was

Error “.onLoad failed in loadNamespace() for 'tcltk'”

随声附和 提交于 2019-12-17 04:07:46
问题 I have a general question about how to effectively load any kind of external package into R. I have found that many sources detailing this information are simply insufficient, but I will leave out mentioning those respective URLs. I have successfully loaded external packages into R before, but I am having difficulties loading the fgui package. In my specific case, I cannot load the library fgui into R Studio. First I download directly from CRAN with the command: install.packages("fgui", lib="

machine learning in R

99封情书 提交于 2019-12-16 20:18:09
一, 网址: http://cran.r-project.org/web/views/MachineLearning.html 维护人员:Torsten Hothorn 版本:2008-02-18 18:19:21 翻译:R-fox, 2008-03-18 机器学习是计算机科学和统计学的边缘交叉领域,R关于机器学习的包主要包括以下几个方面: 1)神经网络(Neural Networks): nnet包执行单隐层前馈神经网络,nnet是VR包的一部分( http://cran.r-project.org/web/packages/VR/index.html )。 2)递归拆分(Recursive Partitioning): 递归拆分利用树形结构模型,来做回归、分类和生存分析,主要在rpart包( http://cran.r-project.org/web/packages/rpart/index.html )和tree包( http://cran.r-project.org/web/packages/tree/index.html )里执行,尤其推荐rpart包。Weka里也有这样的递归拆分法,如:J4.8, C4.5, M5,包Rweka提供了R与Weka的函数的接口( http://cran.r-project.org/web/packages/RWeka/index.html

R语言中的机器学习

余生颓废 提交于 2019-12-16 17:45:04
转载自 R中文论坛(http://rbbs.biosino.org/Rbbs/posts/list/192.page) Machine Learning & Statistical Learning (机器学习 & 统计学习) 网址: http://cran.r-project.org/web/views/MachineLearning.html 维护人员:Torsten Hothorn 版本:2008-02-18 18:19:21 翻译:R-fox, 2008-03-18 机器学习是计算机科学和统计学的边缘交叉领域,R关于机器学习的包主要包括以下几个方面: 1)神经网络(Neural Networks): nnet包执行单隐层前馈神经网络,nnet是VR包的一部分( http://cran.r-project.org/web/packages/VR/index.html )。 2)递归拆分(Recursive Partitioning): 递归拆分利用树形结构模型,来做回归、分类和生存分析,主要在rpart包( http://cran.r-project.org/web/packages/rpart/index.html )和tree包( http://cran.r-project.org/web/packages/tree/index.html )里执行,尤其推荐rpart包

Possible to state explicit versions of package dependencies?

无人久伴 提交于 2019-12-14 03:43:39
问题 I tend to be rather explicit than implicit about the code I write. So after having managed to create my own packages, the next thing that immediately comes to my mind is how best to ensure robustness and reliability of my code. Part of that has to do with the packages my package depends on. Actual Question In that respect: is it possible to explicitly state which version of a package dependency is required/desired? I'm looking for ways that don't require stating the actual path to, say, the

Caret package not available for version 3.4.2

冷暖自知 提交于 2019-12-13 04:33:10
问题 I'm trying to install the caret package on R, yet I get an error message saying that package ‘caret’ is not available (for R version 3.4.2). Is there any way around this? 回答1: R CMD build (via r-devel) added the higher requirement of 3.5.0 with this message: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: caret/inst/models/models.RData 来源: https://stackoverflow.com/questions/55383673