hi,

Am Mittwoch, 20. August 2014, 13:57:06 schrieb Milan Bouchet-Valat:
>  If nobody steps in to take up
> maintainership, it will eventually be archived. As RKWard uses R2HTML
> for output, it would be quite a bad situation.

indeed.

> Would you be interested in working at fixing the few R CMD check WARNINGs 
> and NOTEs in order to update the package?

i sure don't have time to dig into the package to feel comfortable enough to 
make changes.

what are the options? evaluate which functionalitiy RKWard uses exactly, and 
try to replace R2HTML with maintained alternatives (if there is any)? two 
things come to my mind:

 print(xtable(), format="HTML")

and extending XiMpLe to make generating HTML easy enough to become independent 
from other packages? here's some stuff i've been toying around for some other 
project:


require(XiMpLe)
# title: character string
# head: contents of the header without title, list of XiMpLe nodes
# body: contents of the body, list of XiMpLe nodes
HTML.page <- function(title="", head=NULL, body=NULL){
  if(!is.null(head)){
    head <- list(XMLNode("title", title), unlist(head))
  } else {
    head <- list(XMLNode("title", title))
  }
  if(!is.null(body)){
    body <- XMLNode("body", body)
  } else {
    body <- XMLNode("body", "")
  }
  full.header <- XMLNode("head", children=head)
  page <- XMLTree(XMLNode("html", .children=list(full.header, body)),
  xml=list(version="1.0", encoding="UTF-8"),
  dtd=list(doctype="html", decl="PUBLIC",
    id="-//W3C//DTD XHTML 1.0 Transitional//EN",
    refer="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";))
  return(page)
}

div <- function(..., attrs=NULL){
  return(XMLNode("div", ..., attrs=attrs))
}

p <- function(..., attrs=NULL){
  return(XMLNode("p", ..., attrs=attrs))
}

head <- NULL #list(
#  XMLNode("script", "foo")
#)
body <- div(p("foo"))


HTML.page("bar", head=head, body=body)


we could build on the R2HTML package code.


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel

Reply via email to