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

cbrob() with long argument list #14

Open
RobinHankin opened this issue Sep 24, 2020 · 2 comments
Open

cbrob() with long argument list #14

RobinHankin opened this issue Sep 24, 2020 · 2 comments

Comments

@RobinHankin
Copy link
Owner

Leo Gürtler points out that there is an infelicity in cbrob():

> a <- lapply(seq_len(10), function(x) as.brob(x))
> ignore <- do.call("cbrob",a)
> 
> 
> a <- lapply(seq_len(1000), function(x) as.brob(x))
> ignore <- do.call("cbrob",a)
Error: C stack usage  9522308 is too close to the limit
> 

I don't think this is a bug as such but it should be documented.

@RobinHankin
Copy link
Owner Author

It is possible to use the accessor methods and build a brob directly:

> a <- lapply(seq_len(1000), function(x) as.brob(x))
> ignore <- brob(unlist(lapply(a,getX)),unlist(lapply(a,getP)))
> 

@RobinHankin
Copy link
Owner Author

Both observations above should appear in the documentation somewhere.

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

1 participant