I looked at the object returned by Sys.getenv()
and found that it's of type character
and class Dlist
. Its structure is
'Dlist' Named chr [1:94] "C:\\ProgramData" ...
- attr(*, "names")= chr [1:94] "ALLUSERSPROFILE" "APPDATA" "asl.log" "ChocolateyInstall" ...
There is no function exported by the base package that seems to create such objects.