SCM

[#6538] Error in q(object) : could not find symbol "status" in environment of the generic function

Date:
2017-08-28 19:57
Priority:
3
State:
Open
Submitted by:
ismail sezen (isezen)
Assigned to:
Nobody (None)
Hardware:
Macintosh
Product:
None
Operating System:
MacOS X
Component:
None
Version:
None
Severity:
None
Resolution:
Works For Me
URL:
Summary:
Error in q(object) : could not find symbol "status" in environment of the generic function

Detailed description
I was not able to install distr package from cran, so I could install the latest development release from the readonly mirror at github. distr version is 2.6.2. But when I tried to run the code below, I'm getting an error.

library(distr)
library(stats)

mc0 <- c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027)
rv <-UnivarMixingDistribution(Norm(486.4255, 53.24133),
Norm(664.0713, 3.674773),
Norm(669.0484, 4.101381),
Norm(677.1753, 4.869985),
Norm(683.2635, 7.288175),
Norm(727.6229, 37.64198),
Norm(819.2011, 57.06655),
mixCoeff=mc0/sum(mc0))
Error in q(object) :
could not find symbol "status" in environment of the generic function

R> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin16.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /opt/local/Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices datasets utils methods base

other attached packages:
[1] distr_2.6.2 SweaveListingUtils_0.7.7 sfsmisc_1.1-1
[4] startupmsg_0.9.4 lintr_1.0.1

loaded via a namespace (and not attached):
[1] MASS_7.3-47 compiler_3.4.1 lazyeval_0.2.0 magrittr_1.5 tools_3.4.1 rex_1.1.1

Comments:

Message  ↓
Date: 2018-07-30 21:26
Sender: Peter Ruckdeschel

[1] the reported problem that distr was not available on CRAN should be fixed by now -- distr 2.7.0 is on CRAN since 2018/07/23.

[2] the problem does not show up when R is run from console; so I suspect this is connected to R being called either from RStudio or from Jupyter IRkernel (or alike) who are catching calls to q() to treat them differently from standard R; to amend this, internally and externally we provide an alias q.l to q which is used in our internal code since 2.7.0 ...

Attached Files:

Changes

Field Old Value Date By
ResolutionNone2018-07-30 21:26ruckdeschel
Thanks to:
Vienna University of Economics and Business Powered By FusionForge