> I am trying to create a vector to store objects create with gmp::as.bigq().
[...]

> library(gmp)
> V <- vector(typeof(as.bigq(1)), 100) # typeof(as.bigq(1)) is raw
> V[[100]] <- as.bigq(1,2)

I got a solution now. If I use a list instead then everything works.

Regards
Martin M. S. Pedersen

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to