cran

R CMD check --as-cran warning

拜拜、爱过 提交于 2019-12-04 17:51:32
问题 I am trying to do R CMD check before uploading my package to CRAN. R CMD check --as-cran "my package folder". However, it spits out this warning: "checking for unstated dependencies in examples ... OK WARNING pdf is needed for checks on size reduction of PDFs" I searched online but found no clue to solve this problem. This warning does not turn up when I run "R CMD check" only. And my package works with no problem. Could someone please tell me what might be wrong with my package? 回答1: qpdf is

Install R packages from binary in Ubuntu Lucid

有些话、适合烂在心里 提交于 2019-12-04 13:15:02
I've installed R in Ubuntu Lucid with the command sudo aptitude install r-base When I try to "install.packages" it seems to download source and then spend ages compiling it. How can I get it to just download and install the binaries, like I'm used to on Windows? Is there any need to compile the packages myself? I'm running inside a VM so it would be great to keep things as slim as possible. Thanks CRAN only distributes source for Unix, in other words no binaries are offered (unlike for Windows). So you simply have to compile the packages locally. That said, we have been working for a few years

NOTE in R CRAN check ---No repository set, so cyclic dependency check skipped [duplicate]

一个人想着一个人 提交于 2019-12-04 02:57:20
This question already has answers here : Closed 4 years ago . NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped (2 answers) I have read NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped and to the best of my knowledge followed the suggestions. Specifically I have an .Rprofile file in ~/ with the line options(repos = c(CRAN=\"http://cran.r-project.org\") . I ran the bash script at the bottom of the page and still have two notes instead of the one I would expect about a New submission. bash-3.2$ ${R} CMD check --as-cran ${name} * using log

R `parallel` package does not exist on CRAN?

梦想的初衷 提交于 2019-12-03 16:22:11
问题 I tried to google "r package parallel" but I have not found it on CRAN. I also tried the following links, but they do not work: http://cran.r-project.org/web/packages/parallel/index.html http://cran.r-project.org/web/packages/parallel http://cran.r-project.org/package=parallel It is also absent in the list of available.packages() . But apparently the package parallel does exist! :-) I have it in the list of my packages and it even has its own tag here :-) 回答1: Is this because it is inside r

R 2.14 - detect packages without namespace

耗尽温柔 提交于 2019-12-03 15:13:55
问题 According to the R News for v2.14: All packages must have a namespace, and one is created on installation if not supplied in the sources. This means that any package without a namespace must be re-installed under this version of R (but data-only packages without R code can still be used). How do I programatically detect which packages installed under 2.13.x don't have a namespace so I know what needs to be updated? 回答1: The function packageHasNamespace holds the key. Use it together with

available.packages by publication date

让人想犯罪 __ 提交于 2019-12-03 14:59:40
Is it possible to get the publication date of CRAN packages from within R? I would like to get a list of the k most recently published CRAN packages, or alternatively all packages published after date dd-mm-yy. Similar to the information on the available_packages_by_date.html ? The available.packages() command has a "fields" argument, but this only extracts fields from the DESCRIPTION. The date field on the package description is not always up-to-date. I can get it with a smart regex from the html page , but I am not sure how reliable and up-to-date the this html file is... At some point Kurt

R CMD check options for “more rigorous testing” - 2.15.0

怎甘沉沦 提交于 2019-12-03 13:08:01
问题 According to the release notes for 2.15: There are new options for more rigorous testing by R CMD check selected by environment variables – see the ‘Writing R Extensions’ manual. Is "more rigorous" relative to the default set of checks? I can't find the supporting text in the manual. I'm sure I'm just missing it What options do I specify to perform the MOST rigorous testing? 回答1: Try R CMD check --as-cran foo_1.2-3.tar.gz The new --as-cran option gathers a few of these together; this was

How to check if a CRAN mirror is outdated?

▼魔方 西西 提交于 2019-12-03 12:41:35
R users are advised to download R and R packages from local CRAN mirrors. But some are outdated. Is there an easy way to check if a repository is outdated? Any function in R that does that? One way is to look at $CRANMIRROR/src/contrib and sort by date (by clicking twice on date) so that you can compare the most recent package on the mirror on what the master host carries. Beyond that, you could use R itself and point available.packages() at the master as well as at a mirror -- if the result sets are different there may be an issue (or you hit the point between master update and mirroring).

Unloading rJava and/or restarting JVM

不羁的心 提交于 2019-12-03 11:09:21
I would like to use rJava in combination with mcparallel but obviously the JVM cannot be forked . Therefore a separate JVM instance needs to be initiated for each child process, e.g: library(rJava) library(parallel) myfile <- system.file("tests", "test_import.xlsx", package = "xlsx") #This works: mccollect(mcparallel({ #Automatically initiates JVM in child xlsx::read.xlsx(myfile, 1) })) However the problem in my case is that the JVM has already been initiated in the (main) parent process as well. This makes it impossible to use rJava in the child process: #init JVM in parent .jinit() #Doesn't

R CMD check --as-cran warning

前提是你 提交于 2019-12-03 10:50:44
I am trying to do R CMD check before uploading my package to CRAN. R CMD check --as-cran "my package folder". However, it spits out this warning: "checking for unstated dependencies in examples ... OK WARNING pdf is needed for checks on size reduction of PDFs" I searched online but found no clue to solve this problem. This warning does not turn up when I run "R CMD check" only. And my package works with no problem. Could someone please tell me what might be wrong with my package? qpdf is an external program necessary to reduce the size of pdf, it can be downloaded from the sourceforge site .