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

Compiling error #106

Closed
tungttnguyen opened this issue Nov 22, 2023 · 7 comments
Closed

Compiling error #106

tungttnguyen opened this issue Nov 22, 2023 · 7 comments

Comments

@tungttnguyen
Copy link

Hello,
I got the following error when installing the package from Github. Can you please check? Thanks!

Downloading GitHub repo ropensci/FedData@HEAD
Error: Failed to install 'FedData' from GitHub:
  input string 74 is invalid
In addition: Warning message:
In gsub("[^/]", "", file_list) :
  unable to translate 'ropensci-FedData-2b95369/docs/articles/FedData_files/TMAX on 23 Oct 1985 (-<a6>C)_679428-1/' to a wide string
@bocinsky
Copy link
Collaborator

Hi, thanks for submitting this issue! I'm currently unable to reproduce it. Would you mind sharing your session information by running sessionInfo() or sessioninfo::session_info().

Or better yet, submit a reprex() with session_info = TRUE:

reprex::reprex(
  x = {
    remotes::install_github("ropensci/FedData")
  },
  session_info = TRUE)

Just paste the output into a new comment!

@tungttnguyen
Copy link
Author

Here you go

remotes::install_github("ropensci/FedData")
#> Using github PAT from envvar GITHUB_PAT
#> Downloading GitHub repo ropensci/FedData@HEAD
#> Warning in gsub("[^/]", "", file_list): unable to translate
#> 'ropensci-FedData-2b95369/docs/articles/FedData_files/TMAX on 23 Oct 1985
#> (-<a6>C)_679428-1/' to a wide string
#> Error: Failed to install 'FedData' from GitHub:
#>   input string 74 is invalid

Created on 2023-11-27 with reprex v2.0.2

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.2 (2023-10-31 ucrt)
#>  os       Windows 10 x64 (build 19045)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United States.utf8
#>  ctype    English_United States.utf8
#>  tz       America/Los_Angeles
#>  date     2023-11-27
#>  pandoc   3.1.1 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  cli           3.6.1   2023-03-23 [1] CRAN (R 4.3.0)
#>  curl          5.1.0   2023-10-02 [1] CRAN (R 4.3.1)
#>  digest        0.6.33  2023-07-07 [1] CRAN (R 4.3.1)
#>  evaluate      0.23    2023-11-01 [1] CRAN (R 4.3.2)
#>  fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.3.0)
#>  fs            1.6.3   2023-07-20 [1] CRAN (R 4.3.1)
#>  glue          1.6.2   2022-02-24 [1] CRAN (R 4.3.0)
#>  htmltools     0.5.7   2023-11-03 [1] CRAN (R 4.3.2)
#>  knitr         1.45    2023-10-30 [1] CRAN (R 4.3.1)
#>  lifecycle     1.0.4   2023-11-07 [1] CRAN (R 4.3.2)
#>  magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.3.0)
#>  purrr         1.0.2   2023-08-10 [1] CRAN (R 4.3.1)
#>  R.cache       0.16.0  2022-07-21 [1] CRAN (R 4.3.0)
#>  R.methodsS3   1.8.2   2022-06-13 [1] CRAN (R 4.3.0)
#>  R.oo          1.25.0  2022-06-12 [1] CRAN (R 4.3.0)
#>  R.utils       2.12.3  2023-11-18 [1] CRAN (R 4.3.2)
#>  remotes       2.4.2.1 2023-07-18 [1] CRAN (R 4.3.1)
#>  reprex        2.0.2   2022-08-17 [1] CRAN (R 4.3.0)
#>  rlang         1.1.2   2023-11-04 [1] CRAN (R 4.3.2)
#>  rmarkdown     2.25    2023-09-18 [1] CRAN (R 4.3.1)
#>  rstudioapi    0.15.0  2023-07-07 [1] CRAN (R 4.3.1)
#>  sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.3.0)
#>  styler        1.10.2  2023-08-29 [1] CRAN (R 4.3.1)
#>  vctrs         0.6.4   2023-10-12 [1] CRAN (R 4.3.1)
#>  withr         2.5.2   2023-10-30 [1] CRAN (R 4.3.1)
#>  xfun          0.41    2023-11-01 [1] CRAN (R 4.3.2)
#>  yaml          2.3.7   2023-01-23 [1] CRAN (R 4.3.0)
#> 
#>  [1] C:/Users/user007/AppData/Local/R/win-library/4.3
#>  [2] C:/Program Files/R/R-4.3.2/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

@John-Polo
Copy link

Same problem:

remotes::install_github("ropensci/FedData")
#> Downloading GitHub repo ropensci/FedData@HEAD
#> Warning in gsub("[^/]", "", file_list): unable to translate
#> 'ropensci-FedData-2b95369/docs/articles/FedData_files/TMAX on 23 Oct 1985
#> (-<a6>C)_679428-1/' to a wide string
#> Error: Failed to install 'FedData' from GitHub:
#>   input string 74 is invalid
Created on 2023-11-30 with [reprex v2.0.2](https://reprex.tidyverse.org/)

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.0 (2023-04-21 ucrt)
#>  os       Windows 10 x64 (build 19045)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United States.utf8
#>  ctype    English_United States.utf8
#>  tz       America/New_York
#>  date     2023-11-30
#>  pandoc   3.1.1 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  cli           3.6.1   2023-03-23 [1] CRAN (R 4.3.0)
#>  curl          5.0.1   2023-06-07 [1] CRAN (R 4.3.0)
#>  digest        0.6.31  2022-12-11 [1] CRAN (R 4.3.0)
#>  evaluate      0.21    2023-05-05 [1] CRAN (R 4.3.0)
#>  fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.3.0)
#>  fs            1.6.2   2023-04-25 [1] CRAN (R 4.3.0)
#>  glue          1.6.2   2022-02-24 [1] CRAN (R 4.3.0)
#>  htmltools     0.5.5   2023-03-23 [1] CRAN (R 4.3.0)
#>  knitr         1.43    2023-05-25 [1] CRAN (R 4.3.0)
#>  lifecycle     1.0.3   2022-10-07 [1] CRAN (R 4.3.0)
#>  remotes       2.4.2.1 2023-07-18 [1] CRAN (R 4.3.1)
#>  reprex        2.0.2   2022-08-17 [1] CRAN (R 4.3.0)
#>  rlang         1.1.1   2023-04-28 [1] CRAN (R 4.3.0)
#>  rmarkdown     2.22    2023-06-01 [1] CRAN (R 4.3.0)
#>  rstudioapi    0.14    2022-08-22 [1] CRAN (R 4.3.0)
#>  sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.3.1)
#>  withr         2.5.0   2022-03-03 [1] CRAN (R 4.3.0)
#>  xfun          0.39    2023-04-20 [1] CRAN (R 4.3.0)
#>  yaml          2.3.7   2023-01-23 [1] CRAN (R 4.3.0)
#> 
#>  [1] C:/Users/japolo/AppData/Local/R/win-library/4.3
#>  [2] C:/Program Files/R/R-4.3.0/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

@bocinsky
Copy link
Collaborator

Thanks y'all. I'll look into it. Just to confirm: Can you install fine from CRAN?

Best,
Kyle

@John-Polo
Copy link

Yes, install from CRAN works fine. I can just go that route. Thank you, Kyle.

@bocinsky
Copy link
Collaborator

I'll still try and get to the bottom of it, though! Thanks @John-Polo and @tungttnguyen.

@bocinsky
Copy link
Collaborator

Hi all. This was due to a random º symbol in a file name that was causing Windows machines to choke. Just pushed an update. You should be good to go to build from GitHub.

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

3 participants