or even more symbolically, vpcfig2(x) which is syntactically a function, but it hasn't been defined as such; there's not anything in the form, except within the parens
I have used R to produce the graph that I want but the graph has a two column output (i.e., two graphs side-by-side). I was informed that I could use plot-lists of the graph objects and have them out put as two separate graphs. It was too complex so I decided to convert the output to a ggplot and use grid.arrange. I found the code to do so at:
However, I am not knowledgeable enough in R to know how to correctly use the “vpcfig2” statement. I did use Reprex for my posted R code. I will attach the graph but if it also needs to be posted via Reprex let me know.
Perhaps when you look at the post you can tell me exactly what to do?
I wish I could help you on that one, but I haven't deal with Windows internals since the first Clinton Administration.
If this were *nix, I'd say that the process under which RStudio is running doesn't have file access permission that you yourself do in browsing the file system and could tell you how to fix it.
I suggest starting a new thread, say "RStudios Windows file open permission denied problem"
After I started the R session I get the warning error that the file can’t be opened. This is a folder that I have access to on my C:drive. Can anyone tell me how to overcome this issue?
library(nonmem2R)
vpcfig2(vpcdir = "C:/BIPHENPEDS_NDA205831/PhysiolPopFit/PSN/run2_vpc", vpctab = "C:/BIPHENPEDS_NDA205831/PhysiolPopFit/PSN/run2_vpc",
vpcresult = "C:/BIPHENPEDS_NDA205831/PhysiolPopFit/PSN/run2_vpc",
use.model.path = TRUE, strata.names = CMT, strata.subset = NULL,
percentile = 10, fy = function(y) { y }, fx = function(x) { x },
xlab = ("Time, hrs "), ylab =("Concentration ng/ml"), col.data = "gray20", cex.data = 1,
pch.data = 19, alpha.data = 0.5, col.line = "grey20", lwd.line = 1,
lty.line = c(2, 1, 2), col.segm = c("steelblue", "gray50", "steelblue"),
alpha.segm = 0.6, type = 3)
#> VPC based on files:
#> C:/BIPHENPEDS_NDA205831/PhysiolPopFit/PSN/run2_vpc
#> and
#> C:/BIPHENPEDS_NDA205831/PhysiolPopFit/PSN/run2_vpc
#> Warning in file(file, "rt"): cannot open file 'C:/BIPHENPEDS_NDA205831/
#> PhysiolPopFit/PSN/run2_vpc': Permission denied
#> Error in file(file, "rt"): cannot open the connection