Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example code in families.Rd failes #53

Closed
sbrockhaus opened this issue Mar 17, 2019 · 4 comments
Closed

example code in families.Rd failes #53

sbrockhaus opened this issue Mar 17, 2019 · 4 comments
Assignees

Comments

@sbrockhaus
Copy link
Member

For me, devtools::run_examples() fails for families.Rd, with

## families object for new distribution
newStudentT <- Families(mu= newStudentTMu(mu=mu, df=df),
                        df=newStudentTDf(mu=mu, df=df))

#  Error in body(x@response) : 
#   trying to get slot "response" from an object of a basic class ("function") with no slots

To be honest, I am not into Families. So can someone else please check?

PS: I run on:
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
gamboostLSS_2.0-1

@mayrandy
Copy link
Member

Thanks! I'll take a look into this...

@mayrandy
Copy link
Member

mayrandy commented Apr 5, 2019

I did have some problems replicating this - for me everything worked fine.

However, then I loaded the 'gamlss' package

The following object is masked from ‘package:mboost’:

    Family

which then leads to the error. So this a problem that only occurs when tha 'gamlss' package is loaded after 'gamboostLSS' and therefore 'mboost' as Family() exists both in 'gamlss.dist' and 'mboost'.

@mayrandy
Copy link
Member

mayrandy commented Apr 5, 2019

I just fix that by using mboost::Family in the examples -> that is not a very elegant way but solves the problem...

@sbrockhaus
Copy link
Member Author

thank you very much. yes, I had loaded the gamlss package as well. old mistake I should have started a completely empty R session and check again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants