R/generic.R

Defines functions GIFTparse GIFTQName GIFTcategory GIFTcomment

Documented in GIFTcategory GIFTcomment GIFTparse GIFTQName

#
#Some generic functions
#

GIFTcomment<-function(txt)
{
	cat("//", txt, sep="")
}


GIFTcategory<-function(catname)
{
	cat("\n\n$CATEGORY: ", catname, "\n\n")
}

GIFTQName<-function(qname)
{
	cat("::", qname, "::", sep="")
}

GIFTparse<-function(txt)
{
#Special characters are: ~ / $ { }

spchar<-c("~", "/", "$", "{", "}") 

for(c in spchar)
{
	txt<-gsub(paste("\\", c, sep=""),paste("\\\\", c, sep=""), txt)
}

	return(txt)
}

Try the RGIFT package in your browser

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

RGIFT documentation built on Nov. 17, 2023, 3:01 p.m.