Internal function: return character(0) instead of NULL. This is sometimes needed not to return error when applying some functions.
nn(x)
x | Input variable |
---|
character(0)
if x==NULL
, x
elsewhere
License: GPL 3.0
# NOT RUN { basename(NULL) # error basename(character()) # ok basename(nn(NULL)) # ok # }