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

CRAN warnings in r-devel-windows-x86_64 #1528

Closed
nacnudus opened this issue Jan 4, 2024 · 4 comments
Closed

CRAN warnings in r-devel-windows-x86_64 #1528

nacnudus opened this issue Jan 4, 2024 · 4 comments

Comments

@nacnudus
Copy link
Contributor

nacnudus commented Jan 4, 2024

The CRAN checks give several warnings about src/unicode_fopen.h.

Version: 2.1.4
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
unicode_fopen.h:37:52: warning: conversion lacks type at end of format [-Wformat=]
unicode_fopen.h:37:14: warning: too many arguments for format [-Wformat-extra-args]
unicode_fopen.h:59:52: warning: conversion lacks type at end of format [-Wformat=]
unicode_fopen.h:59:14: warning: too many arguments for format [-Wformat-extra-args]
See 'd:/Rcompile/CRANpkg/local/4.4/readr.Rcheck/00install.out' for details.

  • used C compiler: 'gcc.exe (GCC) 12.3.0'
  • used C++ compiler: 'g++.exe (GCC) 12.3.0'
    Flavor: r-devel-windows-x86_64

The same warnings occur for https://github.com/r-lib/meltr, which I maintain, and which includes the same file src/unicode_fopen.h from when meltr was split from this repo. I don't have a fix, and would be grateful to follow anything done in this repo.

@jennybc
Copy link
Member

jennybc commented Jan 4, 2024

Yeah I have an email from CRAN. The fix will presumably be along the same lines as what I recently did in vroom:

tidyverse/vroom@997e945

@nacnudus
Copy link
Contributor Author

nacnudus commented Jan 9, 2024

Thank you very much. That worked.

@jennybc
Copy link
Member

jennybc commented Jan 10, 2024

What I see on CRAN as of 2024-01-09:

Version: 2.1.4
Check: whether package can be installed
Result: WARN 
  Found the following significant warnings:
    unicode_fopen.h:37:52: warning: conversion lacks type at end of format [-Wformat=]
    unicode_fopen.h:37:14: warning: too many arguments for format [-Wformat-extra-args]
    unicode_fopen.h:59:52: warning: conversion lacks type at end of format [-Wformat=]
    unicode_fopen.h:59:14: warning: too many arguments for format [-Wformat-extra-args]
  See 'd:/Rcompile/CRANpkg/local/4.4/readr.Rcheck/00install.out' for details.
  * used C compiler: 'gcc.exe (GCC) 12.3.0'
  * used C++ compiler: 'g++.exe (GCC) 12.3.0'
Flavor: [r-devel-windows-x86_64](https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/readr-00check.html)

Pertinent details from the email:

In particular look at the Windows issues.

Please correct before 2024-01-18 to safely retain your package on CRAN.

@jennybc
Copy link
Member

jennybc commented Jan 10, 2024

Fixed in 5afd348.

Proof that it is fixed is in unmerged PR that adds a Windows r-devel GHA job to show going from red to green: #1529

@jennybc jennybc closed this as completed Jan 10, 2024
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

2 participants