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

Fiddle Selection Add-In Not Reflowing Tribbles #143

Open
henrydehe opened this issue Jan 30, 2025 · 0 comments
Open

Fiddle Selection Add-In Not Reflowing Tribbles #143

henrydehe opened this issue Jan 30, 2025 · 0 comments

Comments

@henrydehe
Copy link

henrydehe commented Jan 30, 2025

Example:

fake_travel_times <- tribble(
~origin, ~i1,       ~i2,  ~i3,  ~i4,  ~i5,  ~i6,  ~i7,  ~i8,  ~i9,  ~i10,
"i1",     10,   25,   35,   20,   40,   30,   45,   35,   50,    25,
"i2",     25,   10,   20,   30,   25,   35,   40,   30,   35,    40,
"i3",     35,   20,             10,   40,   15,   30,   25,   20,   25,    45,
"i4",     20,   30,   40,   10,   45,   25,   50,   40,   55,    15,
              "i5",     40,   25,   15,   45,   10,   35,   20,   25,   15,    50,
"i6",     30,   35,          30,   25,   35,   10,   35,   25,   40,    30,
"i7",     45,   40,   25,   50,   20,   35,   10,   15,   25,    55,
"i8",     35,   30,   20,   40,   25,   25,   15,   10,   30,    45,
"i9",     50,   35,       25,   55,   15,   40,   25,   30,   10,    60,
"i10",    25,   40,   45,   5,   50,   30,   55,   45,   60,    10
)

I select this misaligned tribble and click on Fiddle selection. Instead of reflowing I get:

c(fake_travel_times, <- tribble(
~origin, ~i1, ~i2, ~i3, ~i4, ~i5, ~i6, ~i7, ~i8, ~i9, ~i10, "i1", 10, 25, 35, 20, 40, 30, 45, 35, 50, 25, "i2", 25, 10, 20, 30, 25, 35, 40, 30, 35, 40, "i3", 35, 20, 10, 40, 15, 30, 25, 20, 25, 45, "i4", 20, 30, 40, 10, 45, 25, 50, 40, 55, 15, "i5", 40, 25, 15, 45, 10, 35, 20, 25, 15, 50, "i6", 30, 35, 30, 25, 35, 10, 35, 25, 40, 30, "i7", 45, 40, 25, 50, 20, 35, 10, 15, 25, 55, "i8", 35, 30, 20, 40, 25, 25, 15, 10, 30, 45, "i9", 50, 35, 25, 55, 15, 40, 25, 30, 10, 60, "i10", 25, 40, 45, 5, 50, 30, 55, 45, 60, 10, ))

The function fails to see this is a tribble and thinks I am trying to create a vector.

Sys.info()
                                                                                                sysname 
                                                                                               "Darwin" 
                                                                                                release 
                                                                                               "24.2.0" 
                                                                                                version 
"Darwin Kernel Version 24.2.0: Fri Dec  6 18:40:14 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8103" 
                                                                                               nodename 
                                                                             "Henrys-MacBook-Air.local" 
                                                                                                machine 
                                                                                                "arm64" 
                                                                                                  login 
                                                                                                 "root" 
                                                                                                   user 
                                                                                            "henrydehe" 
                                                                                         effective_user 
                                                                                            "henrydehe" 




> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/London
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.4.2    cli_3.6.3         tools_4.4.2       rstudioapi_0.17.1 pkgload_1.4.0    
[6] rlang_1.1.5       datapasta_3.1.1  

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

1 participant