Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch indexed lapply to mapply to possibly avoid scrambling issues #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.dcf
.DS_Store
commits.txt
.Rproj.user
13 changes: 13 additions & 0 deletions CloudCal.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX
15 changes: 1 addition & 14 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -15030,21 +15030,8 @@ content = function(file){

inFile <- input$loadvaldata
if (is.null(inFile)) return(NULL)
temp = inFile$name
temp <- gsub(".csv", "", temp)
id.seq <- seq(1, 2048,1)

n <- length(temp)*id.seq

n.seq <- seq(1, length(inFile$name), 1)


data <- pblapply(n.seq, function(x) csvFrame(filepath=inFile$datapath[x], filename=inFile$name[x]))
data <- pbmapply(function(datapath, name) { csvFrame(datapath,name) }, inFile$datapath, inFile$name)
data <- do.call("rbind", data)


incProgress(1/n)
Sys.sleep(0.1)
})

tryCatch(data$Energy <- data$Energy + gainshiftHold(), error=function(e) NULL)
Expand Down