A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eddelbuettel/rprotobuf/issues/37 below:

serializing "package_version" object causes infinite recursion · Issue #37 · eddelbuettel/rprotobuf · GitHub

The following R code causes RProtoBuf to infinitely recurse:

x <- package_version("1.2")
RProtoBuf::serialize_pb(x)

I did some digging and it looks like when this is because when sub indexing the list, the list returns itself:

x <- package_version("1.2")
identical(x,x[[1]])
> TRUE

this causes lapply(obj, rexp_obj) to never terminate.

Perhaps in these situations, we should call unlist?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4