Code Monkey home page Code Monkey logo

Comments (5)

markdly avatar markdly commented on June 12, 2024

Sure we should be able to do this with existing functions. I'll make a reprex for it

from conquestr.

markdly avatar markdly commented on June 12, 2024

Here's a possible solution using existing functions. If you think this is something we'll do often let's build it in to the core functionality so you don't need to do workarounds...

library(conquestr)
my_cmds <- cqc_cmds()
my_defaults <- cqc_defaults()
my_cmds$data <- "data {customfile}.txt"
my_defaults$customfile <- "my_default_file.txt"

writeLines(unlist(cqc_syntax("example1", "1-10", my_cmds, my_defaults)))
#> reset;
#> data my_default_file.txt.txt
#> label << example1.lab;
#> format  responses 1-10;
#> model item;
#> estimate ! iter=1000, nodes=30;
#> itanal >> example1.itn;
#> show ! estimates=latent >> example1.shw;
#> export logfile >> example1.CQL;
#> put >> example1.CQS;

Created on 2018-04-20 by the reprex package (v0.2.0).

from conquestr.

LCisannoyed avatar LCisannoyed commented on June 12, 2024

I reckon I will frequently need to do this .
I am happy to use your reprex in the interim

thanks for get me a solution so quickly

from conquestr.

markdly avatar markdly commented on June 12, 2024

New commit to develop branch should address this issue now. If you don't want a custom filename it defaults to the current setup and uses the value of the name argument provided to cqc_syntax

from conquestr.

markdly avatar markdly commented on June 12, 2024

This is now been merged into the master branch with 8dae718

from conquestr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.