Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install stops when time zone TZ is empty #6

Open
tobigithub opened this issue Dec 16, 2020 · 0 comments
Open

install stops when time zone TZ is empty #6

tobigithub opened this issue Dec 16, 2020 · 0 comments

Comments

@tobigithub
Copy link
Collaborator

Fresh install on Win64 and R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

> library(rJava)
> .jinit()
> devtools::install_github("Paolobnn/Retiplib")
Downloading GitHub repo Paolobnn/Retiplib@HEAD
  
√  checking for file 'C:\Users\rj\AppData\Local\Temp\RtmpSgSOXC\remotes112061e521a3\PaoloBnn-Retiplib-49bd5fe/DESCRIPTION'

-  preparing 'Retiplib': (626ms)
   checking DESCRIPTION meta-information ...
   checking DESCRIPTION meta-information ... 
√  checking DESCRIPTION meta-information
Warning in as.POSIXlt.POSIXct(x, tz) :
   Warning in as.POSIXlt.POSIXct(x, tz) :
     unable to identify current timezone 'C':
   please set environment variable 'TZ'
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'Retiplib_0.2.1.tar.gz'

Error in strptime(xx, f, tz = tz) : 
  (converted from warning) unable to identify current timezone 'C':
please set environment variable 'TZ'
Error: Failed to install 'Retiplib' from GitHub:
  (converted from warning) installation of package ‘C:/Users/rj/AppData/Local/Temp/RtmpSgSOXC/file11203ea06479/Retiplib_0.2.1.tar.gz’ had non-zero exit status
> 

Potential solution: Define timezone or fix and request setting of time zone.
check timezone before:

Sys.timezone()
[1] "unknown"
Warning message:
In Sys.timezone() : unable to identify current timezone 'C':
please set environment variable 'TZ'

> Sys.setenv(TZ='GMT')
> Sys.timezone()
[1] "GMT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant