This function captures the output of an R object and writes it to a file, then copies the contents of the file to the clipboard.

clip(obj, file = "output.txt")

Arguments

obj

The R object whose output is to be captured.

file

The file to which the output will be written (default: "output.txt").

Value

None