R/pp.R

Defines functions pp

#
# vim:set ff=unix expandtab ts=2 sw=2:

pp=function(# print out an 
	### This function is used to print out a value of a variable together with its name and is helpful for debugging
string,env=parent.frame()){
  cat("\n########################################################################\n")
  callingFun <-as.list(sys.call(-1))[[1]]
  callerName<-toString(callingFun)
  print(paste("pp in",callerName,string,":="))
  print(get(string,env))
}

Try the SoilR package in your browser

Any scripts or data that you put into this service are public.

SoilR documentation built on Oct. 13, 2023, 5:06 p.m.