File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 11Type: Package
22Package: styler
33Title: Non-Invasive Pretty Printing of R Code
4- Version: 1.3.9000 
4+ Version: 1.3.1 
55Authors@R: 
66    c(person(given = "Kirill",
77             family = "Müller",
Original file line number Diff line number Diff line change 1+ # styler 1.3.1  
2+ 
3+ Emergency release. In case multiple expressions are on one line and only 
4+ some of them are cached, styler can remove code. To reach this state, 
5+ some of the expressions must have been styled previously alone and the cache
6+ must be active. Example:
7+ 
8+ ``` 
9+ library(styler) 
10+ cache_activate() 
11+ #> Using cache 1.3.0 at ~/.Rcache/styler/1.3.0. 
12+ style_text("1") 
13+ #> 1 
14+ style_text("1 # comment") 
15+ #> # comment 
16+ ``` 
17+ 
18+ This is obviously detrimental. We have added additional tests and fixed the 
19+ problem (#593  , #595  ), but we want repeat the warning from ` ?style_file `  that all 
20+ style APIs apart from ` style_text() `  overwrite code and that styler can only 
21+ check the AST remains valid with ` scope < "tokens" ` . So use this if you are 
22+ conservative. Or deactivate the cache with ` deactivate_cache() `  until it has 
23+ fully matured.
24+ 
25+ We thank the people who have contributed to this release:
26+ 
27+ [ @ ; ellessenne] ( https://github.com/ellessenne )  and 
28+ [ @ ; renkun-ken] ( https://github.com/renkun-ken ) .
29+ 
130# styler 1.3.0  
231
332## Breaking changes  
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments