MilesMcBain / packup

Collect, stow, and alphabetise library() calls in your R files.
Other
59 stars 4 forks source link

saved file error #9

Open verajosemanuel opened 3 years ago

verajosemanuel commented 3 years ago

when calling packup a message is shown:

Cannot packup unsaved file. Please save and checkin this file.

I have saved the file but to no avail. (Rstudio preview 1.4)

trashbirdecology commented 2 years ago

@verajosemanuel are there library() calls in the script? I just ran into this error and was confused....until I noticed I wasn't loading any packages in the script.

I think that when no library calls exist in the script, the following error always follows:

Cannot packup unsaved file. Please save and checkin this file. Error in mapply(rstudioapi::document_position, line_matches, 1, SIMPLIFY = FALSE) : zero-length inputs cannot be mixed with those of non-zero length

I will note, however, that I still have issues with the same error. I can never successfully call packup::packup() -- rather I must use the add-in point and click solution.