O Iago :linux: :debian: on Nostr: Is there some way to work inside an specific environment, not using get, attach and ...
Is there some way to work inside an specific environment, not using get, attach and environment subsetting, but as being in the Global Environment?
I mean, I'd like doing something such as (I know this does not work)
{
current.env() <- as.environment("raw")
a = 5
}
environment()
#Global environment
ls() # does not include `a`
ls(pos="raw") # includes `a`
#RStats #R
Published at
2026-06-02 10:35:42 UTCEvent JSON
{
"id": "514d829858b627ec94f2990e394c7589833695034352f569b57ac0913c0822a6",
"pubkey": "76eadd77d241689d2861cdd2ac4f4234aff69e233e82145ad7f24e71a18bcd54",
"created_at": 1780396542,
"kind": 1,
"tags": [
[
"t",
"r"
],
[
"t",
"global"
],
[
"proxy",
"https://social.vivaldi.net/@IGVazquez/116680067837550254",
"web"
],
[
"t",
"rstats"
],
[
"proxy",
"https://social.vivaldi.net/users/IGVazquez/statuses/116680067837550254",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://social.vivaldi.net/users/IGVazquez/statuses/116680067837550254",
"pink.momostr"
],
[
"-"
]
],
"content": "Is there some way to work inside an specific environment, not using get, attach and environment subsetting, but as being in the Global Environment?\nI mean, I'd like doing something such as (I know this does not work)\n{\n current.env() \u003c- as.environment(\"raw\")\n a = 5\n}\nenvironment()\n#Global environment\nls() # does not include `a`\nls(pos=\"raw\") # includes `a`\n\n#RStats #R",
"sig": "e31e03918b3a6e0f5ff33ac8c6f94c9fc0ee5d61eb03a84d4d72257be8c94b7cc3c606ef0dc4f4a8ed4169cfa35eb7e427dac09037639f1072f8b8fe25c5b694"
}