File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,8 @@ SEXP freadR(
159159 // here we use bool and rely on fread at R level to check these do not contain NA_LOGICAL
160160 args .stripWhite = LOGICAL (stripWhiteArg )[0 ];
161161 args .skipEmptyLines = LOGICAL (skipEmptyLinesArg )[0 ];
162- if (!isString (commentCharArg ) || LENGTH (commentCharArg ) != 1 )
163- error (_ ("comment.char must be a single character vector of length 1" )); // # notranslate
164162 const char * commentStr = CHAR (STRING_ELT (commentCharArg , 0 ));
165- size_t commentLen = strlen (commentStr );
166- if (commentLen > 1 )
167- error (_ ("comment.char must be a single character or \"\"" )); // # notranslate
168- args .comment = commentLen == 0 ? '\0' : commentStr [0 ];
163+ args .comment = strlen (commentStr ) == 0 ? '\0' : commentStr [0 ];
169164 args .fill = INTEGER (fillArg )[0 ];
170165 args .showProgress = LOGICAL (showProgressArg )[0 ];
171166 if (INTEGER (nThreadArg )[0 ] < 1 )
You can’t perform that action at this time.
0 commit comments