community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Designer Ideas

Share your Designer product ideas - we're listening!

Cleaner R Tool text field

I would love the R tool editor to work like a standard text field....it might be better explained in this scenario.  Pretend the character text is a script youve written with the function being at the top.  Let's say you'd like to move the function closer to the script, look at the weird output.  This editor pastes text like we are pasting images.

 

The use case is that I like to break my code into mini functions that I work on in the r console with sample data.  Once it works, I post it into alteryx and experiment with it on a small sample, then a larger sample.  If I have to have a document for my overall r cost in notepad ++, my function, and the console, it’s a little nusance, especially since I usually have to go back and forth with multiple functions.  I am not askin for a full blown editor, I like my notepad ++ for that, just a text input that works conventionally. 

 

 

 

 

 

 

 

 

 

 

SampleFunction <- function(x)
{
print(x)
}

 

abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz

 

when you paste the function (or any other text in the middle, look at this funky output)

 

 

 

 

 

 

 

 

 

 

abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
SampleFunction <- function(x)abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
{abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
print(x)abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
}abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz

1 Comment
ACE Emeritus
ACE Emeritus

I starred this, and had a similar situation: I've noticed that when pasting new code into the R code tool, it doesn't insert into the existing code, rather it will overwrite existing code if it's "in the way".  It's easy to work around: just make sure I have enough blank space to fit whatever I'm pasting... but it would be nice to have the pasted code inserted such that existing code is unaffected.  Thanks.

 

(@TaraM - my above text was taken from my post here.  Feel free to delete that, as this is probably a better spot... still getting used to "where to put things." Thanks!)