2

I am working with neo4r library in R. When i use this function

call_neo4j(con, type = "graph")

I get the error

Fehler in readBin(content, character()) :  R character strings are limited to 2^31-1 bytes

Anyone have any idea about it?

wazz
  • 4,953
  • 5
  • 20
  • 34
info
  • 21
  • 1
  • 2
  • 2
    It looks like your input data to the `neo4r` library is more than 2GB. But, you have an even bigger problem here, because if a single variable require _more_ than 2GB, then it is quite likely that your entire script would exceed the memory available to R. – Tim Biegeleisen Oct 19 '19 at 17:26
  • could we have a little more context please? – Ben Bolker Oct 19 '19 at 17:27
  • @TimBiegeleisen: R can handle data frames and data.tables of over 80GB without problem. The problem here lies in the fact that OP reached a limit on individual objects. From the documentation: "The number of bytes in a character string is limited to 2^31 - 1 ~ 2*10^9, which is also the limit on each dimension of an array." – Biblot Oct 19 '19 at 22:36
  • @SamuelDiebolt Sure...and the OP will never get anywhere near that limit, because R runs in memory and it is doubtful that the OP has that much available RAM. – Tim Biegeleisen Oct 20 '19 at 00:46
  • @TimBiegeleisen I think it's safe to assume OP has at least 2GB of available RAM, otherwise running any kind of application using Neo4J is pretty much out of the question. :-) – Biblot Oct 20 '19 at 00:55

1 Answers1

-1

As the error would suggest, you reached the limit on the size of character strings. From the documentation:

The number of bytes in a character string is limited to 2^31 - 1 ~ 2*10^9, which is also the limit on each dimension of an array.

Without more information, we can't help you solve this problem. See here to create a minimal reproducible example that could help us solve your problem.

Biblot
  • 695
  • 3
  • 18