-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Autocompletion doesn't work for columns in data frame imported from SPSS #14672
Comments
@JamesGillerITS Thank you for raising this! I'm unable to reproduce the issue, though. I've tried importing a few SPSS datasets and autocomplete works. Can you provide a sample input file that we can use to reproduce the issue? |
Thank you for posting this! I was having the exact same issue and thought that I was just going mad. I'm not able to provide a sample file at this time, but in case it's helpful I am able to create a dataframe containing variables from the original dataset and autocompletion does work on it. The dataset that was giving me issues is also pretty large, with over 7000 columns. When downgrading RStudio versions, the autocompletion works as expected. I hope this helps at all! |
@laivincent528 How did you create the dataframe--was it also by importing using |
Also, I tried both a 10K x 10K dataframe created in R and the same importing with |
Hi @ronblum, unfortunately I can't provide the data file in question, as it contains confidential information. As with @laivincent528, I can select a subset of the columns in the data into another variable, which can then be used with autompletion normally. It may be an issue with some particular variable(s) in the data. |
Thanks, but unfortunately unless you can provide us with an example that can help us reproduce the issue locally, we will be unable to fix this issue. |
I will try to create a file. I have an idea that might work. Please give me some time. |
Much appreciated! Please keep us informed. |
Hi all. I have noticed the exact same issue and I was worried that there was something wrong with my laptop or installation. Like in James case, accessing the data with dollar sign ($) doesn't provide any matches using the current desktop version of RStudio ("2024.04.0+735"), however, it seems to work in a previous version in Posit cloud ("2023.12.1+402.pro1"). Also, this issue seems to occur when exporting data to '.sav' format using the current version of SPSS (v29). When I tried some older '.sav' files it worked okay. Please, find attached a '.sav' file downloaded from the internet which works (manipulate.sav), and a sample dataset exported from SPSS v29 (test_data.sav) which doesn't work. Let me know if that helps. |
Thanks! I was able to reproduce the issue locally; this is a regression from recent work to support variable labels in the completion popup display. We'll take a look. |
Glad it helped! Thanks! |
Same problem here. I think it may be related to labels ( |
I agree. I just upgraded my RStudio yesterday to "2021.04.1 Build 748" running on |
This morning, I rolled back to the previous RStudio version
|
System details
Steps to reproduce the problem
Read data using
read_sav
from the Haven package (version 2.5.4).Try to use autocompletion to access columns in the data set.
Describe the problem in detail
Typing the first few characters of the data set variable name triggers autocompletion normally.
When trying to use
$
to access a column, autocompletion results in(No matches)
.Autocompletion works with built in dataset
mtcars
, and another SAV file found on Github: https://github.com/UtrechtUniversity/R-data-cafe/blob/master/exercises/practiceFileReading/data/mtcars.savThe problem only became apparent after installing the latest version of RStudio.
Describe the behavior you expected
I expected to see a tooltip with a list of column names for my data set, and to be able to autocomplete code to access columns using
$
.The text was updated successfully, but these errors were encountered: