You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the simplest, most ergonomic and idiomatic equivalent of the following Python code in R?
# Prompt for first and last names.first_name, last_name=view(
box('First name', value='Boaty'),
box('Last name', value='McBoatface'),
)
# Print the entered valuesview(f'Hello, {first_name}{last_name}!')
For context, this is what the above code would've looked like if Python didn't have destructuring assignments:
# Prompt for first and last names.result=view(
box('First name', name='first_name', value='Boaty'),
box('Last name', name='last_name', value='McBoatface'),
)
# Print the entered valuesview(f'Hello, {result['first_name']}{result['last_name']}!')
The text was updated successfully, but these errors were encountered:
What's the simplest, most ergonomic and idiomatic equivalent of the following Python code in R?
Source: https://nitro.h2o.ai/basics/#get-multiple-inputs-at-once
For context, this is what the above code would've looked like if Python didn't have destructuring assignments:
The text was updated successfully, but these errors were encountered: