File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 444444 "category" : " R Package" ,
445445 "command" : " r.build"
446446 },
447+ {
448+ "title" : " Build Binary" ,
449+ "category" : " R Package" ,
450+ "command" : " r.buildBinary"
451+ },
447452 {
448453 "title" : " Check" ,
449454 "category" : " R Package" ,
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<apiImp
111111
112112 // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758
113113 'r.build' : ( ) => vscode . commands . executeCommand ( 'workbench.action.tasks.runTask' , 'R: Build' ) ,
114+ 'r.buildBinary' : ( ) => vscode . commands . executeCommand ( 'workbench.action.tasks.runTask' , 'R: Build Binary' ) ,
114115 'r.check' : ( ) => vscode . commands . executeCommand ( 'workbench.action.tasks.runTask' , 'R: Check' ) ,
115116 'r.document' : ( ) => vscode . commands . executeCommand ( 'workbench.action.tasks.runTask' , 'R: Document' ) ,
116117 'r.install' : ( ) => vscode . commands . executeCommand ( 'workbench.action.tasks.runTask' , 'R: Install' ) ,
Original file line number Diff line number Diff line change @@ -54,6 +54,16 @@ const rtasks: RTaskInfo[] = [
5454 group : vscode . TaskGroup . Build ,
5555 problemMatchers : [ ]
5656 } ,
57+
58+ {
59+ definition : {
60+ type : TYPE ,
61+ code : [ 'devtools::build(binary = TRUE, args = c(\'--preclean\'))' ]
62+ } ,
63+ name : 'Build Binary' ,
64+ group : vscode . TaskGroup . Build ,
65+ problemMatchers : [ ]
66+ } ,
5767
5868 {
5969 definition : {
You can’t perform that action at this time.
0 commit comments