aboutsummaryrefslogtreecommitdiff
path: root/check.log
blob: fc06bc0db282fb08af365f7bbbc54546243fec79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
* using log directory ‘/home/jranke/git/mkin/mkin.Rcheck’
* using R version 3.6.3 (2020-02-29)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using options ‘--no-tests --as-cran’
* checking for file ‘mkin/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘mkin’ version ‘0.9.49.10’
* package encoding: UTF-8
* checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
Maintainer: ‘Johannes Ranke <jranke@uni-bremen.de>’
* 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 executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking serialization versions ... OK
* checking whether package ‘mkin’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking ‘build’ 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
* 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 use of S3 registration ... OK
* checking 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 ... NOTE
nlme.mmkin: no visible binding for global variable ‘na.fail’
nlme.mmkin: no visible binding for global variable ‘f’
Undefined global functions or variables:
  f na.fail
Consider adding
  importFrom("stats", "na.fail")
to your NAMESPACE file.
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... 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 installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... ERROR
Running examples in ‘mkin-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: nlme_function
> ### Title: Estimation of parameter distributions from mmkin row objects
> ### Aliases: nlme_function mean_degparms nlme_data
> 
> ### ** Examples
> 
> sampling_times = c(0, 1, 3, 7, 14, 28, 60, 90, 120)
> m_SFO <- mkinmod(parent = mkinsub("SFO"))
> d_SFO_1 <- mkinpredict(m_SFO,
+   c(k_parent_sink = 0.1),
+   c(parent = 98), sampling_times)
> d_SFO_1_long <- mkin_wide_to_long(d_SFO_1, time = "time")
> d_SFO_2 <- mkinpredict(m_SFO,
+   c(k_parent_sink = 0.05),
+   c(parent = 102), sampling_times)
> d_SFO_2_long <- mkin_wide_to_long(d_SFO_2, time = "time")
> d_SFO_3 <- mkinpredict(m_SFO,
+   c(k_parent_sink = 0.02),
+   c(parent = 103), sampling_times)
> d_SFO_3_long <- mkin_wide_to_long(d_SFO_3, time = "time")
> 
> d1 <- add_err(d_SFO_1, function(value) 3, n = 1)
> d2 <- add_err(d_SFO_2, function(value) 2, n = 1)
> d3 <- add_err(d_SFO_3, function(value) 4, n = 1)
> ds <- c(d1 = d1, d2 = d2, d3 = d3)
> 
> f <- mmkin("SFO", ds, cores = 1, quiet = TRUE)
> mean_dp <- mean_degparms(f)
> grouped_data <- nlme_data(f)
> nlme_f <- nlme_function(f)
> # These assignments are necessary for these objects to be
> # visible to nlme and augPred when evaluation is done by
> # pkgdown to generated the html docs.
> assign("nlme_f", nlme_f, globalenv())
> assign("grouped_data", grouped_data, globalenv())
> 
> library(nlme)
> m_nlme <- nlme(value ~ nlme_f(name, time, parent_0, log_k_parent_sink),
+   data = grouped_data,
+   fixed = parent_0 + log_k_parent_sink ~ 1,
+   random = pdDiag(parent_0 + log_k_parent_sink ~ 1),
+   start = mean_dp)
> summary(m_nlme)
Nonlinear mixed-effects model fit by maximum likelihood
  Model: value ~ nlme_f(name, time, parent_0, log_k_parent_sink) 
 Data: grouped_data 
       AIC      BIC    logLik
  253.6377 262.9937 -121.8188

Random effects:
 Formula: list(parent_0 ~ 1, log_k_parent_sink ~ 1)
 Level: ds
 Structure: Diagonal
        parent_0 log_k_parent_sink Residual
StdDev: 2.486822         0.6481355 2.368137

Fixed effects: parent_0 + log_k_parent_sink ~ 1 
                      Value Std.Error DF  t-value p-value
parent_0          101.43096 1.5960157 44 63.55261       0
log_k_parent_sink  -3.07614 0.3827294 44 -8.03737       0
 Correlation: 
                  prnt_0
log_k_parent_sink 0.011 

Standardized Within-Group Residuals:
       Min         Q1        Med         Q3        Max 
-1.9643731 -0.5430765  0.1659516  0.6160408  1.8082871 

Number of Observations: 48
Number of Groups: 3 
> plot(augPred(m_nlme, level = 0:1), layout = c(3, 1))
> 
> m_nlme <- nlme(nlme_formula,
+   data = grouped_data,
+   fixed = parent_0 + log_k_parent_sink ~ 1,
+   random = pdDiag(parent_0 + log_k_parent_sink ~ 1),
+   start = mean_dp)
Error in nlme(nlme_formula, data = grouped_data, fixed = parent_0 + log_k_parent_sink ~  : 
  object 'nlme_formula' not found
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... SKIPPED
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... OK
* checking PDF version of manual ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR, 1 NOTE
See
  ‘/home/jranke/git/mkin/mkin.Rcheck/00check.log’
for details.

Contact - Imprint