Hello,
so I found out it is possible to run selected lines as a background job under Code > Run Selection as Background Job (or with an assigned hotkey). This is awesome!
Anyways I still have a small problem: apparently the libraries are not imported. Adding the tick to "Run job with copy of global environment" does not help.
Is there any way to initiate the selected lines as a background job with all currently loaded libraries included? Of course I could just add the libraries to the lines, but this would be very laborious.
Yes sure that would work, but I would never do that because it is tedious in my case. I feel like "Run Selection" should be a quick and easy thing to do, like running a couple of lines while working somewhere else on that script. The problem is, that some very fundamental functions like data.table and tidy will not work, so this is basically not usable except for base R.
An option to also include libraries with the global environment would be great.