- using R Under development (unstable) (2012-05-22 r59405)
- using platform: x86_64-unknown-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘papply/DESCRIPTION’ ... OK
- this is package ‘papply’ version ‘0.1’
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... WARNING
As from R 2.14.0 all packages need a namespace.
One will be generated on installation, but it is better to handcraft a
NAMESPACE file: R CMD build will produce a suitable starting point.
CRAN requires a NAMESPACE file for all submissions.
- checking for executable files ... OK
- checking whether package ‘papply’ can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... WARNING
‘library’ or ‘require’ calls not declared from:
‘MASS’ ‘nnet’
- checking examples ... ERROR
Running examples in ‘papply-Ex.R’ failed
The error most likely occurred in:
> ### Name: papply
> ### Title: papply
> ### Aliases: papply
> ### Keywords: utilities
>
> ### ** Examples
>
> # A couple trivial examples
> library(papply)
>
> number_lists <- list(1:10,4:40,2:27)
> results <- papply(number_lists,sum)
1 slaves are spawned successfully. 0 failed.
master (rank 0, comm 1) of size 2 is running on: gannet
slave1 (rank 1, comm 1) of size 2 is running on: gannet
[1] "Running serial version of papply\n"
> results
[[1]]
[1] 55
[[2]]
[1] 814
[[3]]
[1] 377
>
> biased_sum <- function(number_list) {
+ return(sum(number_list+bias))
+ }
> results <- papply(number_lists,biased_sum,list(bias=2))
[1] "Running serial version of papply\n"
> results
[[1]]
[1] 75
[[2]]
[1] 888
[[3]]
[1] 429
>
>
> # A slightly larger example - training of a neural net over a parameter space.
> # Produces information on best rss result for each set of parameters.
> # Maintains static random seeds in order to provide reproducible results.
> # (This isn't ideal. e.g. RSS not the best measure given variation in
> # sizes of test sets. But, it should show closely how papply is really used)
>
> # Read in libaries and Boston Housing Data
> library(papply)
> library(MASS)
Error in library(MASS) : there is no package called ‘MASS’
Execution halted