Open richfitz opened 8 years ago
Could be solved by use of a global counter and a bit of hackery, without having to create a full connection object.
normalizePath(filename, mustWork=FALSE)
file(filename, mode="a")
seagull_open()
list(filename, connection, handle)
On release we decrement the counter and if it hits zero:
Could be solved by use of a global counter and a bit of hackery, without having to create a full connection object.
normalizePath(filename, mustWork=FALSE)
to get the complete filename (hopefully).file(filename, mode="a")
to create a proper R connectionseagull_open()
to get the actual file descriptor ("handle")list(filename, connection, handle)
On release we decrement the counter and if it hits zero: