Displaying 2 results from an estimated 2 matches for "mmstructdb".
Did you mean:
  mmstruct
  
2013 Sep 09
1
Package installation and path.package
...and there within with 'path.package'. When I install it, I get the error: Error in path.package("mypackage") : none of the packages are loaded. Here is the code, I use in my package:
".defaultDBPath"    <- function() 
{
    db.path <- tempfile(pattern     = "mmstructDB", 
                        tmpdir      = file.path(path.package("mmstruct"),
                                                "data", "databases"),
                        fileext     = ".db")
    return(db.path)
}
.mmstructBASE <- setClass("mmst...
2013 Sep 18
1
Design for classes with database connection
...assume this is faster and more efficient than programming something on my own - why reinventing the wheel? For this I would use VIRTUAL classes like:
.mmstructBASE	<- setClass('mmstructBASE', representation(
					dbName		= "character",
					dbTable		= "character"))
.mmstructDB		<- setClass('mmstructDB', representation(
					conn		= "SQLiteConnection"),
					contains		= c("mmstructBASE"))
.mmstruct <- setClass('mmstruct', representation(
			name	= "character",
			index	= "array",
			N		= "integer",...