I am not able to knit my document in PDF format since I executed the following:
setme <-
"Sys.setenv(TZ='America/New_York') #some default not get any errors
invisible(loadNamespace('rgeolocate'))
invisible(loadNamespace('httr'))
mytz <- rgeolocate::ip_api(httr::content(httr::GET('https://api.ipify.org?format=json'))[1])[['timezone']]
Sys.setenv(TZ=mytz)"
cat(setme,file=file.path(R.home(),'etc/Rprofile.site'),sep='\n')
from: https://community.rstudio.com/t/rstudio-sys-setenv-does-not-persist/2105/16
In R Markdown, it prints the following message:
Error in loadNamespace("rgeolocate") :
there is no package called ‘rgeolocate’
Execution halted
Do you know what is the reason for such message?
I regret having executed these lines. Thank you