Zoran Krunic
Zoran Krunic

Reputation: 197

Rstudio cannot step into the source code

I built my own R library mlib001, and did Build/Build source package, which produced tar file in that libs directory. Now I can reference that library from another main/test R script file with:

library(mlib001)

I also went to Tools in that main code screen, Install Packages, Install from Package archive, then brows to the tar file for that library mlib001, import - all gets loaded fine. I then run the main code with CTRL-ALT-R, it runs fine and invokes functions from mlib001 and all completes ok. But if I set breakpoint in the main code to step into the function from the library, once I do step in I get the message that source code is not available: "Debug location is approximate because the source code is not available". How do I resolve this so I can step into the functions with the debugger? Thanks

Upvotes: 1

Views: 1805

Answers (1)

Sonia
Sonia

Reputation: 339

I'm not sure if this is applicable but I had similar problems because I copied some comments written elsewhere that included some scandinavian characters, like "ä".

Upvotes: 2

Related Questions