#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
setwd(args[1])
.oldf<<-args[2]
print(.oldf)
system(paste0(" awk '{if(NR==1)sub(/^\\xef\\xbb\\xbf/,\"\");print}' ",.oldf," > ",.oldf,"nobomb.R"))
source(paste0(args[2],"nobomb.R"))
annot=data
f=gsub("r$|R$","RData",gsub("_R_","_DATA_",.oldf))
tmp=file.remove(paste0(.oldf,"nobomb.R"))
annot=annot[,which(!paste0(colnames(annot) ,".factor")%in% colnames(annot))]
colnames(annot)=gsub(".factor$","",colnames(annot))
save(annot,file=paste0(f))
# print(scan(args[2],what="character"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.