diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java
index 79911c2ea1a89f89c83829060c0a7021336f1895..fec907242f0fc9d30cb9e084d97b8384a3fa941e 100644
--- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java
+++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java
@@ -363,8 +363,8 @@ abstract class DelegateRConnection implements RConnection, ByteChannel {
                 channel.position(offset);
                 break;
             case END:
-                throw RInternalError.unimplemented();
-
+                channel.position(channel.size());
+                break;
         }
         return position;
     }