Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Drop links or images here to add them to the editor.
Write a function true_names() that takes a logical vector and returns the names of the elements with the value TRUE in case there are names. Otherwise return NULL.
Be sure to include the necessary checks and messages for the user.