gadenbuie / shrtcts

Make Anything an RStudio Shortcut
https://pkg.garrickadenbuie.com/shrtcts/
Other
119 stars 4 forks source link

shrtct doesn't see yaml file #2

Closed Arf9999 closed 4 years ago

Arf9999 commented 4 years ago

I keep getting the error Error: Could not find .shrtcts.yaml in /Users/arf/.config or /Users/arf

The file is definitely there, and it is my home folder. If I specify the filepath in add_rstudio_shortcuts it loads the add-in to rstudio.

> shrtcts::add_rstudio_shortcuts()
Error: Could not find .shrtcts.yaml in /Users/arf/.config or /Users/arf
> shrtcts::add_rstudio_shortcuts("/Users/arf/.shrtcts.yaml")

Restarting R session...

> shrtcts:::shortcut_01()
Error: Could not find .shrtcts.yaml in /Users/arf/.config or /Users/arf
gadenbuie commented 4 years ago

Hi! Sorry, I won't be able to help without any more information. Can you include

Arf9999 commented 4 years ago

Hi! Sorry, I won't be able to help without any more information. Can you include

Sorry... accidentally submitted before I was finished typing. Please see edited version above.

OS - MacOS Catalina 10.15 RStudio 1.2.5042

devtools::session_info("shrtcts")
─ Session info ───────────────────────────────────────────────────────────────────────────────────────
 setting  value                                 
 version  R version 4.0.0 RC (2020-04-21 r78267)
 os       macOS Catalina 10.15.4                
 system   x86_64, darwin17.0                    
 ui       RStudio                               
 language (EN)                                  
 collate  en_US.UTF-8                           
 ctype    en_US.UTF-8                           
 tz       Africa/Johannesburg                   
 date     2020-05-04                            

─ Packages ───────────────────────────────────────────────────────────────────────────────────────────
 package * version date       lib source                            
 fs        1.4.1   2020-04-04 [1] CRAN (R 4.0.0)                    
 shrtcts   0.0.1   2020-05-04 [1] Github (gadenbuie/shrtcts@b3ba997)
 yaml      2.2.1   2020-02-01 [1] CRAN (R 4.0.0)                    

[1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
gadenbuie commented 4 years ago

Okay, sorry about that! I just pushed a quick fix that should get things back in order.

Arf9999 commented 4 years ago

Okay, sorry about that! I just pushed a quick fix that should get things back in order.

Working perfectly now... I did need to experiment a bit to get it assign some values to the environment. For some reason it would not accept x <- readRDS("x.rds") I had to specifically assign it to the global environment like so: assign("x", readRDS("x.rds"), pos = 1)

I'm sure to someone more experienced than me that would be obvious, but it took me two hours to figure out :).