Hi there,
I'm reopening this post :
Hello,
I have 2022.12.0 Build 353 ("Elsbeth Geranium" Release (7d165dcf, 2022-12-03) for Windows). When I pipe any function, it does not show the first argument.
I get why it does this--it's just automatically passing to the first arg. However, I think this is pretty inflexible because I often want to specify the argument anyways or pass to an argument that is NOT the first argument.
I can't see how to go back to the good old autocomplete where it shows me all of the arguments. Please help!!!
For example, if I do the below, the autocomplete offers me just ".f" and not ".x" and ".f"
library(tidyverse)
iris%>%
map()
I can understand the goal for piped function passing argument to the second function and not showing first parameter when doing autocompletion inside the function parenthesis, but this behaviour also appears when using operator like %in% or even a custom operator like %<-% that feeds a list. For instance :
myList %<-% myListFeedingFun(par1 = "par1", par2 = "par2")
The par1 won't autocomplete and I'll have to look at the documentation to know its existence.
Is it a normal behaviour or is there any way to bypass this limitation ?
Best,
A
1 Like
I'm just adding my support for this topic to be reopened (naturally, as I'm still struggling with the first argument not showing!)
Hello, if you have a bug report or feature request to make for RStudio, the best place for it would be the github.
FYI, for those interested, I posted it as a feature request here:
opened 06:09PM - 28 Apr 23 UTC
bug
autocompletion
regression
Hello,
**Problem:**
When I pipe any function, it does not show the first a… rgument.
I get why it does this--it's just automatically passing to the first arg. This is also why I didn't mark this as a bug. However, I think this is pretty inflexible because I often want to specify the argument anyways for readability or pass to an argument that is NOT the first argument.
**Reproducible Example**
For example, if I do the below, the autocomplete offers me just "file" and not "x" when I go to do autocomplete for the `write()` function:
```
matrix(1:10, ncol = 5)|>write()
```
**Solution:**
I would like to go back to the old autocomplete where it shows me all of the arguments when I hit tab (the hotkey I have assigned to show the arguments), or even better, give user the option to pick. Any help is appreciated.
**Session Details:**
RStudio:
I am using a desktop and running everything locally on my machine--
RStudio 2023.03.0+386 "Cherry Blossom" Release (3c53477afb13ab959aeb5b34df1f10c237b256c3, 2023-03-09) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36
R:
```
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 2.2
year 2022
month 10
day 31
svn rev 83211
language R
version.string R version 4.2.2 (2022-10-31 ucrt)
nickname Innocent and Trusting
```
1 Like
system
Closed
June 9, 2023, 6:14pm
5
This topic was automatically closed 42 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.