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

Rgui names deprecated warning #239

Closed
JanMarvin opened this issue Jun 20, 2022 · 5 comments
Closed

Rgui names deprecated warning #239

JanMarvin opened this issue Jun 20, 2022 · 5 comments
Labels
bug 🐛 Something isn't working internal 🔧

Comments

@JanMarvin
Copy link
Owner

When importing a workbook in Rgui and selecting wb$sharedStrings I see a warning that I should use get_sheet_names. Not sure if spurious or if we use names somewhere in our code.

@JanMarvin JanMarvin added bug 🐛 Something isn't working internal 🔧 labels Jun 20, 2022
@JanMarvin JanMarvin changed the title Rgui names deprecated warni6 Rgui names deprecated warning Jun 20, 2022
@jmbarbone
Copy link
Collaborator

Might be good to double-check the .libPaths() and packageVersion("openxlsx2") within the Rgui to make sure it's using what you're expecting -- especially if you don't use the Rgui much.

@JanMarvin
Copy link
Owner Author

Thanks, I don't ever use it indeed. Looks fine. I'll try to check our code later today.

@JanMarvin
Copy link
Owner Author

possible fix in #240

@D3SL
Copy link

D3SL commented Oct 3, 2022

I think I'm getting this. Trying to use openxlsx2 interactively in VSCode is impossible, and it winds up breaking something in R so badly that every single operation in the console spams a message about openxlsx2.

r$> library(tidyverse)
-- Attaching packages ---------------v ggplot2 3.3.5     v purrr   0.3.4
v tibble  3.1.6     v dplyr   1.0.7
v tidyr   1.1.4     v stringr 1.4.0
v readr   2.1.1     v forcats 0.5.1
-- Conflicts ------------------------x dplyr::filter() masks stats::filter()
x dplyr::lag()    masks stats::lag() 

r$> library(openxlsx2)

Attaching package: 'openxlsx2'

The following object is masked from 'package:readr':

    write_file


r$>
    bigtest<-wb_workbook()
warning messages from top-level task 
callback 'vsc.workspace'
Warning message:
'names.wbWorkbook' is deprecated.
Use '$get_sheet_names()' instead.
See help("Deprecated") 

r$> 2+2
[1] 4
warning messages from top-level task 
callback 'vsc.workspace'
Warning message:
'names.wbWorkbook' is deprecated.    
Use '$get_sheet_names()' instead.    
See help("Deprecated") 

@JanMarvin
Copy link
Owner Author

Hi @D3SL ,

thanks for the report. That is a bit inconvenient and as a first attempt we should simply drop the depreacted warning on names.wbWorkbook(). Obviously either your R console or some tidyverse package tries some evaluation in the background, that triggers this warning.

It's not visible in Rstudio nor in R in a console on Linux or Mac where we tested.

JanMarvin added a commit that referenced this issue Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working internal 🔧
Projects
None yet
Development

No branches or pull requests

3 participants