- using R version 3.0.1 (2013-05-16)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'bayesPop/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'bayesPop' version '3.2-3'
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'bayesPop' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over 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
- loading checks for arch 'i386'
** 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 whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
- loading checks for arch 'x64'
** 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 whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace 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 ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking compiled code ... OK
- checking examples ...
** running examples for arch 'i386' ... ERROR
Running examples in 'bayesPop-Ex.R' failed
The error most likely occurred in:
> ### Name: pop.expressions
> ### Title: Expressions as used in Population Plot Functions
> ### Aliases: pop.expressions
> ### Keywords: documentation
>
> ### ** Examples
>
> sim.dir <- file.path(find.package("bayesPop"), "ex-data", "Pop")
> pred <- get.pop.prediction(sim.dir, write.to.cache=FALSE)
>
> # median child-bearing age of Netherlands and all countries - trajecotries
> pop.trajectories.plot(pred, nr.traj=50,
+ expression="pop.apply(P528_F{4:10}, gmedian, cats= seq(15, by=5, length=8))")
> pop.trajectories.plotAll(pred, nr.traj=50,
+ expression="pop.apply(PXXX_F{4:10}, gmedian, cats= seq(15, by=5, length=8))")
>
> # mean child-bearing age of Netherlands - table
> pop.trajectories.table(pred,
+ expression="pop.apply(age.func(P528_F{4:10}), fun=sum) / P528_F[4:10]")
median 0.025 0.1 0.9 0.975
1948 31.04993 NA NA NA NA
1953 31.29837 NA NA NA NA
1958 31.20536 NA NA NA NA
1963 30.56515 NA NA NA NA
1968 30.53527 NA NA NA NA
1973 30.31476 NA NA NA NA
1978 30.30850 NA NA NA NA
1983 30.63980 NA NA NA NA
1988 31.39790 NA NA NA NA
1993 32.40059 NA NA NA NA
1998 32.80670 NA NA NA NA
2003 33.06037 NA NA NA NA
2008 33.11893 33.11893 33.11893 33.11893 33.11893
2013 32.86847 32.86817 32.86821 32.87002 32.87030
2018 32.33836 32.33704 32.33710 32.33979 32.34042
2023 32.06071 32.05844 32.05914 32.06249 32.06262
2028 32.31635 32.17949 32.20851 32.38413 32.40888
2033 32.59293 32.44915 32.45990 32.64501 32.67087
2038 32.59699 32.42078 32.47305 32.76237 32.77998
2043 32.45296 32.24991 32.31072 32.72924 32.76927
2048 32.27299 32.06196 32.06392 32.48898 32.50453
2053 32.03187 31.73287 31.80125 32.26184 32.28616
2058 31.92248 31.80175 31.83713 32.24044 32.35236
2063 32.08941 31.98782 32.00937 32.30784 32.31554
2068 32.37941 32.19429 32.20592 32.56765 32.61876
2073 32.29538 32.00408 32.08479 32.67157 32.71782
2078 32.23550 31.66568 31.85143 32.67175 32.69615
2083 32.27199 31.51484 31.58052 32.50875 32.58279
2088 32.10984 31.67318 31.67416 32.56190 32.67780
2093 32.21790 31.68560 31.71295 32.69854 32.86970
2098 32.35413 31.92554 31.97577 32.55071 32.59045
>
> # migration per capita by age
> pop.byage.plot(pred, expression="GNL{} / PNL{}", year=2000)
>
> # potential support ratio - map
> pop.map(pred, expression="PXXX[5:13] / PXXX[14:27]")
Loading required package: rworldmap
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: grid
Checking rgeos availability: FALSE
Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
which has a restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Loading required package: fields
Loading required package: spam
Spam version 0.29-3 (2013-04-23) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following object is masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
Warning: replacing previous import 'show' when loading 'spam'
### Welcome to rworldmap ###
For a short introduction type : vignette('rworldmap')
Loading required package: rgdal
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'rgdal'
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function 'spTransform' for signature '"SpatialPolygonsDataFrame"'
Calls: pop.map -> <Anonymous> -> spTransform -> <Anonymous>
Execution halted
** running examples for arch 'x64' ... ERROR
Running examples in 'bayesPop-Ex.R' failed
The error most likely occurred in:
> ### Name: pop.expressions
> ### Title: Expressions as used in Population Plot Functions
> ### Aliases: pop.expressions
> ### Keywords: documentation
>
> ### ** Examples
>
> sim.dir <- file.path(find.package("bayesPop"), "ex-data", "Pop")
> pred <- get.pop.prediction(sim.dir, write.to.cache=FALSE)
>
> # median child-bearing age of Netherlands and all countries - trajecotries
> pop.trajectories.plot(pred, nr.traj=50,
+ expression="pop.apply(P528_F{4:10}, gmedian, cats= seq(15, by=5, length=8))")
> pop.trajectories.plotAll(pred, nr.traj=50,
+ expression="pop.apply(PXXX_F{4:10}, gmedian, cats= seq(15, by=5, length=8))")
>
> # mean child-bearing age of Netherlands - table
> pop.trajectories.table(pred,
+ expression="pop.apply(age.func(P528_F{4:10}), fun=sum) / P528_F[4:10]")
median 0.025 0.1 0.9 0.975
1948 31.04993 NA NA NA NA
1953 31.29837 NA NA NA NA
1958 31.20536 NA NA NA NA
1963 30.56515 NA NA NA NA
1968 30.53527 NA NA NA NA
1973 30.31476 NA NA NA NA
1978 30.30850 NA NA NA NA
1983 30.63980 NA NA NA NA
1988 31.39790 NA NA NA NA
1993 32.40059 NA NA NA NA
1998 32.80670 NA NA NA NA
2003 33.06037 NA NA NA NA
2008 33.11893 33.11893 33.11893 33.11893 33.11893
2013 32.86847 32.86817 32.86821 32.87002 32.87030
2018 32.33836 32.33704 32.33710 32.33979 32.34042
2023 32.06071 32.05844 32.05914 32.06249 32.06262
2028 32.31635 32.17949 32.20851 32.38413 32.40888
2033 32.59293 32.44915 32.45990 32.64501 32.67087
2038 32.59699 32.42078 32.47305 32.76237 32.77998
2043 32.45296 32.24991 32.31072 32.72924 32.76927
2048 32.27299 32.06196 32.06392 32.48898 32.50453
2053 32.03187 31.73287 31.80125 32.26184 32.28616
2058 31.92248 31.80175 31.83713 32.24044 32.35236
2063 32.08941 31.98782 32.00937 32.30784 32.31554
2068 32.37941 32.19429 32.20592 32.56765 32.61876
2073 32.29538 32.00408 32.08479 32.67157 32.71782
2078 32.23550 31.66568 31.85143 32.67175 32.69615
2083 32.27199 31.51484 31.58052 32.50875 32.58279
2088 32.10984 31.67318 31.67416 32.56190 32.67780
2093 32.21790 31.68560 31.71295 32.69854 32.86970
2098 32.35413 31.92554 31.97577 32.55071 32.59045
>
> # migration per capita by age
> pop.byage.plot(pred, expression="GNL{} / PNL{}", year=2000)
>
> # potential support ratio - map
> pop.map(pred, expression="PXXX[5:13] / PXXX[14:27]")
Loading required package: rworldmap
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
Loading required package: grid
Checking rgeos availability: FALSE
Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
which has a restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Loading required package: fields
Loading required package: spam
Spam version 0.29-3 (2013-04-23) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following object is masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
Warning: replacing previous import 'show' when loading 'spam'
### Welcome to rworldmap ###
For a short introduction type : vignette('rworldmap')
Loading required package: rgdal
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'rgdal'
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function 'spTransform' for signature '"SpatialPolygonsDataFrame"'
Calls: pop.map -> <Anonymous> -> spTransform -> <Anonymous>
Execution halted