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

issue with new file creation when the function is defined in position [1,1] #21

Open
danwwilson opened this issue Sep 1, 2022 · 0 comments

Comments

@danwwilson
Copy link

danwwilson commented Sep 1, 2022

In RStudio when the a function is at position [1,1] in a document and fn_mate() is called to create a function in a new file it throws an error because of some strange truncation.

my_function(test)

gives an error

Error in parse(text = elt) : <text>:2:0: unexpected end of input
1: y_function(test

You can see it is missing the first and last characters.

In VScode, the behavior is different in that the file and function would be created, but instead it will create a file called y_function.R with a function y_function()

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