https://github.com/cran/fda
Tip revision: 46adf260de087c2b8337483cfa491f34c96b0888 authored by J. O. Ramsay on 04 April 2006, 00:00:00 UTC
version 1.1.4
version 1.1.4
Tip revision: 46adf26
add-links.rb
Dir["*/*.[rR]d"].each do |path|
puts path
file = File.new(path, "r")
update = file.read.gsub(/\\seealso\{(.*?)\}/smi) do
"\\seealso{\n" +
$1.gsub("\n","").split(/[\, ]+/).map{|f| "\\code{\\link{#{f}}}"}.join(", \n") +
"\n}"
end
file.close
file = File.new(path, "w")
file.write update
file.close
end