From d|pter|x@w@ng @end|ng |rom gm@||@com  Fri Feb 11 12:55:44 2022
From: d|pter|x@w@ng @end|ng |rom gm@||@com (Dipterix Wang)
Date: Fri, 11 Feb 2022 06:55:44 -0500
Subject: [Rd] str2lang throws error when the string is empty
Message-ID: <3D923E32-CF64-4AC5-BE66-61048A30A55B@gmail.com>

Hi, 

str2lang("") raises an error in current version. Would it be good if it returns a missing value expression? One use-case would be to build an expression that subsets an array:

# Expected: x[index1, ]
as.call(list(quote(`[`), quote(x), quote(index1), str2lang("")))

Right now I'm using the following, which is ugly
as.call(list(quote(`[`), quote(x), quote(index1), alist(x=)[[1]]))

Thanks,
- Dipterix
	[[alternative HTML version deleted]]



[Rd] str2lang throws error when the string is empty
Dipterix Wang