Error in assign(name, value, envir = attr(static, ".env")) : use of NULL environment is defunct

830 Views Asked by At

I got the following error:

Error in assign(name, value, envir = attr(static, ".env")) : use of NULL environment is defunct

while running such code

location<-strona %>%
html_nodes(".text-nowrap.hidden-xs") %>%
html_text()

Do you have understanding how fix this error, so that environment is not NULL environment anymore?

1

There are 1 best solutions below

5
jg77 On

I have a similar problem that has just started to appear on several r scripts that parse websites. There was an update to the package 'selectr' recently. I reverted back to version 0.3-2 of selectr and the problem disappeared.