> getwd() [1] "C:/Users/James/Documents" > setwd("~/academic/conceptual sciences/information, signals, systems/pharmacometrics/algorithms and software/R packages/mrgsolve/2016-03-12 workshop") > # Compile and load model > model <- mread("intro_model", proj) %>% + update(delta = 0.25, end = 120) Error in mread("intro_model", proj) %>% update(delta = 0.25, end = 120) : could not find function "%>%" > library(mrgsolve) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > library(ggplot2) Need help? Try the ggplot2 mailing list: http://groups.google.com/group/ggplot2. > # Compile and load model > model <- mread("intro_model", proj) %>% + update(delta = 0.25, end = 120) Error in as.character(x) : cannot coerce type 'closure' to vector of type 'character'
Error in mread("intro_model", proj) %>% update(delta = 0.25, end = 120) : could not find function "%>%" > library(mrgsolve) > library(dplyr)
--
MetrumRG Website: http://www.metrumrg.com/opensourcetools.html
---
You received this message because you are subscribed to the Google Groups "mrgsolve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mrgsolve+unsubscribe@metrumrg.com.
To post to this group, send email to mrgs...@metrumrg.com.
Visit this group at https://groups.google.com/a/metrumrg.com/group/mrgsolve/.
Thanks Kyle, but my question wasn't really with dplyr (I saw that
mistake but copied and pasted in my output from the top, warts and
all so to speak). Instead it was with the last line (and note
that my second command was the setwd() to where the .cpp code
resides. There is no saved object called proj in that directory,
but then this wasn't indicated as a task in the file
introduction.pdf either. The documentation for mread() lists
"project = getwd()" as its second argument, and I thought that
"proj" was short for this argument.
model <- mread("intro_model")
If "proj" doesn't exist as an R object in your R session, the mread call clearly won't work.