Giter VIP home page Giter VIP logo

Comments (8)

pzhaonet avatar pzhaonet commented on July 26, 2024 1

目前我只把文字部分推到项目里了,有些前处理的代码和图片比较乱,暂时没时间整理,还没有推过来。待我先把 pdf 书稿搞定了再回头弄这个。

from msg.

yihui avatar yihui commented on July 26, 2024

我接着修了几个问题,只能走到这一步了:https://travis-ci.com/github/XiangyunHuang/MSG-Book/builds/179483251 感觉是来自 https://github.com/yihui/MSG/blob/master/inst/examples/pork-price2.R 但我不明白为什么 patchwork 加载了还是出错。

label: pork-price (with options) 
List of 4
 $ fig.scap    : chr "(ref:pork-price-s)"
 $ fig.cap     : chr "(ref:pork-price)"
 $ dev         : chr "tikz"
 $ fig.showtext: logi FALSE
Quitting from lines 771-772 (_main.Rmd) 
Error in p1 | p2 : 
  operations are possible only for numeric, logical or complex types
Calls: <Anonymous> ... msg -> source -> withVisible -> eval -> eval -> print
Execution halted
The command "Rscript -e 'bookdown::render_book("index.Rmd")'" exited with 1.

from msg.

XiangyunHuang avatar XiangyunHuang commented on July 26, 2024

在这个 Rmd 是不是还加载了 cowplot 或者别的什么?@yihui 不要浪费时间在这个上面了, @pzhaonet 既然一直都是离线在处理,我们是没法知道究竟干了什么的,此外用 msg() 函数把代码隐藏起来,更是加大了排错的难度,我已经放弃了。

既然 @pzhaonet 线下已经搞了一套,其实我之前 edition1 分支的内容都是可以删掉的,然后换上大鹏的新内容,这样两个就不会打架,也好排错,同时也不要管 Travis 报错了,浪费大家的精力。所以我先把这个 issues 关闭了!

from msg.

yihui avatar yihui commented on July 26, 2024

我不太习惯在一个总是报错的分支上做开发工作。如果只是自己用,那也无所谓,只要自己能编出来就好了。如果是别人可以贡献的公开库,我觉得最好还是把问题修正了,这样好知道别人贡献来的代码是不是有问题,有问题好早发现。

我觉得最终最好还是把这个 edition1 分支合并到主分支中吧。

from msg.

pzhaonet avatar pzhaonet commented on July 26, 2024

我可以弄个在线处理的完好项目,用 travis-ci 自动编译 bookdown 项目出来 pdf,但是得放弃 docker,因为这个东西我实在搞不定。

from msg.

XiangyunHuang avatar XiangyunHuang commented on July 26, 2024

容器别弄了

from msg.

yihui avatar yihui commented on July 26, 2024

Travis 不必编出 PDF 来,只要 gitbook 格式能编出来就够了。我的书一般都只提供网页版,PDF 我自己在本地编出来给出版社。

from msg.

XiangyunHuang avatar XiangyunHuang commented on July 26, 2024

我也是这么认为,想弄 PDF 的,自己学去

from msg.

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.