cran

### ** Examples … Error: could not find function building packages in R

老子叫甜甜 提交于 2019-12-11 08:55:52
问题 I have created a package named test and I have a function named lad inside it. When I build it and after check it with cran=TRUE , I receive the following error. Any idea what's going wrong? * checking examples ... ERROR Running examples in 'test-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: lad > ### Title: LAD > ### Aliases: lad > > ### ** Examples > > lad(y = "farm", x = "land", data="http://pages.stat.wisc.edu/

Running devtools::check() on Rstudio results in 0 notes/ 0 errors/ 0 warnings; but running R CMD check gives me errors and notes

拜拜、爱过 提交于 2019-12-11 04:22:36
问题 I am using Rstudio-version 0.99.902 and R-version 3.3.1 (2016-06-21). I have written a package that I would like to submit to CRAN. When I run the devtools::check() functions (--as-cran included), I successfully pass all tests , with NO errors/warnings/notes. Although when I run the same on my terminal (ubuntu 15.10), it gives me errors and warnings. Running R CMD build - R CMD build mypackage //home/akilesh/anaconda2/bin/R: 12: [: Linux: unexpected operator /home/akilesh/anaconda2/lib/R/bin

R: warning/error when calling normalizePath(…) or adding to .libPath(…)

混江龙づ霸主 提交于 2019-12-10 23:23:52
问题 I have a shared computer. If I login with windows userA, I can run the following: normalizePath("//mydrive/my/path", "/") and it returns: "\\\\mydrive/my/path" However if login to windows under userB, I get this message: Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="//mydrive/my/path": An unexpected network error occurred What does it mean? This has important consequences, as it prevents to add "//mydrive/my/path" to the .libPaths() when running under

CRAN/ Bioconductor package installs fail: Error: Line starting '<!DOCTYPE HTML PUBLI …' is malformed

跟風遠走 提交于 2019-12-10 16:17:31
问题 I have just made a fresh Ubuntu 14.04 installation and installed R following the instructions at this link and this other one, selecting the Berkeley mirror as I always do. On emacs (+ess), I am unable to install any CRAN or Bioconductor package at all, for example: install.packages("ggplot2") Or: source("http://bioconductor.org/biocLite.R") biocLite("biomaRt") I constantly get the following error: Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! Following on this other thread, I

CRAN submission - R CMD Check warning - compilation flags used

南笙酒味 提交于 2019-12-10 14:35:12
问题 I am trying to submit my first package to CRAN and on my machine, I am getting the following warning on running R CMD check (via RStudio ) checking compilation flags used ... WARNING Compilation used the following non-portable flag(s): ‘-Wno-unused-function’ ‘-Wno-unused-variable’ including flag(s) suppressing warnings R CMD check results 0 errors | 1 warning | 0 notes R CMD check succeeded I don't get this warning on building my package on R win-builder. I do get a NOTE from the win-builder

Note in R CRAN check — * checking top-level files … NOTE File README.md cannot be checked without ‘pandoc’ being installed

*爱你&永不变心* 提交于 2019-12-10 13:54:12
问题 I am checking my R package for CRAN submission, but there is one NOTE that I cannot get rid of. I googled it but seems this NOTE is not common thus I didn't find much useful information. Could any one provide me with a solution? Below is part of the output from R CMD check --as-cran . * using R version 3.2.0 (2015-04-16) * using platform: x86_64-apple-darwin13.4.0 (64-bit) * using session charset: UTF-8 * using option ‘--as-cran’ ... ... * checking DESCRIPTION meta-information ... OK *

Why was package 'epicalc' removed from CRAN? [closed]

别等时光非礼了梦想. 提交于 2019-12-10 13:22:47
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Go to the link: https://cran.r-project.org/web/packages/epicalc/index.html You will obtain the message: Package ‘epicalc’ was removed from the CRAN repository. Formerly available versions can be obtained from the archive. Archived on 2015-05-12 as requested by the maintainer

setTimeLimit fails to terminate idle call in R

谁都会走 提交于 2019-12-10 12:46:50
问题 I would like to use setTimeLimit to abort operations that are stuck waiting (idle) after n seconds. Below a toy example in which Sys.sleep is a placeholder call that is idle: testlimit <- function(){ setTimeLimit(elapsed=3, transient=TRUE); Sys.sleep(10); } system.time(testlimit()); However this is giving inconsistent results. On windows and in r-studio server (linux) the call is correctly aborted after 3 seconds win video. However, when I run this in a terminal session in either on linux or

R语言 机器学习包

孤人 提交于 2019-12-10 01:44:38
from: http://www.zhizhihu.com/html/y2009/410.html 机器学习是计算机科学和统计学的边缘交叉领域,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 )。 party包提供两类递归拆分算法,能做到无偏的变量选择和停止标准:函数ctree()用非参条件推断法检测自变量和因变量的关系;而函数mob(

Did the subdirectory structure of package repositories change as of R 2.15.2?

前提是你 提交于 2019-12-09 06:49:26
Kind of embarrassing / a no-go, but since it hasn't been that long that I've moved from "pure user" to "beginner-developer", I've never actually read the CHANGELOG when a new R version came out - well until today (and I have the feeling I should make this a habbit) ;-) Yet I'm not sure if the supposed change actually occurred since I couldn't find anything about it at a first glimpse at the CHANGELOG of R R 2.15.2: Actual question Is it possible that the (subdirectory) structure of package repositories changed from ./bin/windows/contrib/2.xx/ to ./src/contrib/2.xx/ or even ./src/contrib ? Or