Skip to content

Commit f68f9e7

Browse files
committed
preserve type from old API
1 parent 0112f03 commit f68f9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/document-api.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ getConsoleEditorContext <- function() {
229229
#' @export
230230
documentNew <- function(
231231
text,
232-
type = NULL,
232+
type = "r",
233233
position = document_position(0, 0),
234234
execute = FALSE)
235235
{

0 commit comments

Comments
 (0)